Merge tootsuite/master at 3023725936
This commit is contained in:
@@ -6,6 +6,8 @@ class StatusPolicy < ApplicationPolicy
|
||||
end
|
||||
|
||||
def show?
|
||||
return false if local_only? && account.nil?
|
||||
|
||||
if direct?
|
||||
owned? || record.mentions.where(account: current_account).exists?
|
||||
elsif private?
|
||||
@@ -46,4 +48,8 @@ class StatusPolicy < ApplicationPolicy
|
||||
def author
|
||||
record.account
|
||||
end
|
||||
|
||||
def local_only?
|
||||
record.local_only?
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user