Adding index overview for reports in admin UI
This commit is contained in:
parent
f722aa8c75
commit
24ba7c9762
7 changed files with 54 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue