diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-12-07 23:18:17 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-12-07 23:18:17 -0600 |
commit | 6eebf636ba7ed36fa949037fe46df71c2e45c59d (patch) | |
tree | 78ce63b6f74b401e68a67a4563041c6af8c47d27 /app/services | |
parent | 6fa9c3eb1bb416bdc05f8bd4011de396e6248aa5 (diff) |
don't count faves as indicators for known accounts
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/block_domain_service.rb | 6 | ||||
-rw-r--r-- | app/services/favourite_service.rb | 2 |
2 files changed, 1 insertions, 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) |