diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-02-16 02:28:10 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-02-16 02:28:10 +0100 |
commit | 24ba7c9762a583f3e1105162f4a43a22a17a4627 (patch) | |
tree | 986ce96eb821cdb964f509d42678a397c7060c6b /app/models | |
parent | f722aa8c7560c91a054868e7a0294c06a210415e (diff) |
Adding index overview for reports in admin UI
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/status.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/status.rb b/app/models/status.rb index e440bbaca..46d92ea33 100644 --- a/app/models/status.rb +++ b/app/models/status.rb @@ -77,7 +77,7 @@ class Status < ApplicationRecord def permitted?(other_account = nil) if private_visibility? - (account.id == other_account&.id || other_account&.following?(account) || mentions.include?(other_account)) + (account.id == other_account&.id || other_account&.following?(account) || mentions.where(account: other_account).exists?) else other_account.nil? || !account.blocking?(other_account) end |