0
0
Fork 0

Adding index overview for reports in admin UI

This commit is contained in:
Eugen Rochko 2017-02-16 02:28:10 +01:00
parent f722aa8c75
commit 24ba7c9762
7 changed files with 54 additions and 2 deletions

View file

@ -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