1
0

Remove unused DomainBlock#affected_accounts_count method (#28642)

This commit is contained in:
Matt Jankowski 2024-01-08 08:38:52 -05:00 committed by GitHub
parent 3e7a9266ea
commit cd58e37b25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,11 +85,6 @@ class DomainBlock < ApplicationRecord
(reject_media || !other_block.reject_media) && (reject_reports || !other_block.reject_reports) (reject_media || !other_block.reject_media) && (reject_reports || !other_block.reject_reports)
end end
def affected_accounts_count
scope = suspend? ? accounts.where(suspended_at: created_at) : accounts.where(silenced_at: created_at)
scope.count
end
def public_domain def public_domain
return domain unless obfuscate? return domain unless obfuscate?