mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-13 15:58:50 +00:00
Merge commit '3205a654caf903002c2db872f802a3332201678b' into glitch-soc/merge-upstream
This commit is contained in:
@@ -58,7 +58,7 @@ class StatusPolicy < ApplicationPolicy
|
||||
if record.mentions.loaded?
|
||||
record.mentions.any? { |mention| mention.account_id == current_account.id }
|
||||
else
|
||||
record.mentions.where(account: current_account).exists?
|
||||
record.mentions.exists?(account: current_account)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user