Skip to content

Commit

Permalink
add comment describing change from upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
toufali committed Feb 29, 2024
1 parent cbb3024 commit c9c611d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/status.rb
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,8 @@ def non_sensitive_with_media?
end

def reported?
# diverged from upstream: status.reported? should be true even if the report against the Status is already resolved
# https://github.com/mastodon/mastodon/pull/27675/files#r1382155905
@reported ||= Report.where(target_account: account).where('? = ANY(status_ids)', id).exists?
end

Expand Down

0 comments on commit c9c611d

Please sign in to comment.