Merge remote-tracking branch 'parent/main' into upstream-20240507
This commit is contained in:
commit
89b71363ae
70 changed files with 1739 additions and 445 deletions
|
@ -336,7 +336,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 dtl?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue