diff options
Diffstat (limited to 'app/policies/status_policy.rb')
-rw-r--r-- | app/policies/status_policy.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/policies/status_policy.rb b/app/policies/status_policy.rb index bcf9c3395..d0359580d 100644 --- a/app/policies/status_policy.rb +++ b/app/policies/status_policy.rb @@ -13,6 +13,7 @@ class StatusPolicy < ApplicationPolicy def show? return false if author.suspended? + return false if local_only? && (current_account.nil? || !current_account.local?) if requires_mention? owned? || mention_exists? @@ -92,4 +93,8 @@ class StatusPolicy < ApplicationPolicy def author record.account end + + def local_only? + record.local_only? + end end |