about summary refs log tree commit diff
path: root/app/models/status.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-02-16 02:28:10 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-02-16 02:28:10 +0100
commit24ba7c9762a583f3e1105162f4a43a22a17a4627 (patch)
tree986ce96eb821cdb964f509d42678a397c7060c6b /app/models/status.rb
parentf722aa8c7560c91a054868e7a0294c06a210415e (diff)
Adding index overview for reports in admin UI
Diffstat (limited to 'app/models/status.rb')
-rw-r--r--app/models/status.rb2
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