mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-20 03:25:17 +01:00
Remove unused DomainBlock#affected_accounts_count
method (#28642)
This commit is contained in:
parent
3e7a9266ea
commit
cd58e37b25
@ -85,11 +85,6 @@ class DomainBlock < ApplicationRecord
|
||||
(reject_media || !other_block.reject_media) && (reject_reports || !other_block.reject_reports)
|
||||
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
|
||||
return domain unless obfuscate?
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user