Fix post deletion not being deferred when those are part of an account warning (#30163)
This commit is contained in:
parent
4f0d18168c
commit
e5062b7135
2 changed files with 43 additions and 1 deletions
|
@ -266,7 +266,7 @@ class Status < ApplicationRecord
|
|||
end
|
||||
|
||||
def reported?
|
||||
@reported ||= Report.where(target_account: account).unresolved.exists?(['? = ANY(status_ids)', id])
|
||||
@reported ||= account.targeted_reports.unresolved.exists?(['? = ANY(status_ids)', id]) || account.strikes.exists?(['? = ANY(status_ids)', id.to_s])
|
||||
end
|
||||
|
||||
def emojis
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue