try to tighten up local only toot stuff, like... properly (#163)
* try to tighten up local only toot stuff, like... properly * try to un-break tests
This commit is contained in:
@@ -9,6 +9,8 @@ class StatusPolicy
|
||||
end
|
||||
|
||||
def show?
|
||||
return false if local_only? && account.nil?
|
||||
|
||||
if direct?
|
||||
owned? || status.mentions.where(account: account).exists?
|
||||
elsif private?
|
||||
@@ -45,4 +47,8 @@ class StatusPolicy
|
||||
def private?
|
||||
status.private_visibility?
|
||||
end
|
||||
|
||||
def local_only?
|
||||
status.local_only?
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user