Remove: reject_send_media
も削除
This commit is contained in:
parent
4f6d89f161
commit
4a5f0f9259
14 changed files with 7 additions and 24 deletions
|
@ -43,7 +43,7 @@ class AccountStatusesFilter
|
|||
private
|
||||
|
||||
def initial_scope
|
||||
if suspended? || domain_block&.reject_send_media || blocked?
|
||||
if suspended? || blocked?
|
||||
Status.none
|
||||
elsif anonymous?
|
||||
account.statuses.where(visibility: %i(public unlisted public_unlisted))
|
||||
|
|
|
@ -143,7 +143,6 @@ class StatusReachFinder
|
|||
[]
|
||||
else
|
||||
blocks = DomainBlock.where(domain: nil)
|
||||
blocks = blocks.or(DomainBlock.where(reject_send_media: true)) if status.with_media?
|
||||
blocks = blocks.or(DomainBlock.where(reject_send_sensitive: true)) if (status.with_media? && status.sensitive) || status.spoiler_text?
|
||||
blocks.pluck(:domain).uniq
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue