From 6eebf636ba7ed36fa949037fe46df71c2e45c59d Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Sat, 7 Dec 2019 23:18:17 -0600 Subject: don't count faves as indicators for known accounts --- app/services/block_domain_service.rb | 6 +----- app/services/favourite_service.rb | 2 -- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/app/services/block_domain_service.rb b/app/services/block_domain_service.rb index 363600d9f..1fae42c50 100644 --- a/app/services/block_domain_service.rb +++ b/app/services/block_domain_service.rb @@ -127,17 +127,13 @@ class BlockDomainService < BaseService end def known_account_ids - local_accounts | packmates | boosted_authors | faved_authors + local_accounts | packmates | boosted_authors end def boosted_authors Status.where(id: Status.local.reblogs.reorder(nil).select(:reblog_of_id)).reorder(nil).pluck(:account_id) end - def faved_authors - Status.where(id: Favourite.select(:status_id)).reorder(nil).pluck(:account_id) - end - def local_accounts Account.local.pluck(:id) end diff --git a/app/services/favourite_service.rb b/app/services/favourite_service.rb index b711fb93c..9ab628fb0 100644 --- a/app/services/favourite_service.rb +++ b/app/services/favourite_service.rb @@ -17,8 +17,6 @@ class FavouriteService < BaseService favourite = Favourite.create!(account: account, status: status) - status.account.mark_known! unless !Setting.auto_mark_known || status.account.known? - curate_status(status) create_notification(favourite) unless skip_notify bump_potential_friendship(account, status) -- cgit