diff options
author | multiple creatures <dev@multiple-creature.party> | 2020-01-13 16:57:05 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2020-01-13 16:57:05 -0600 |
commit | fd8b5299fd914c8c5acc9ffbcbabad1360d36c0b (patch) | |
tree | 52b714ca2459bb253057135215e1b02b0fb940d9 /app/policies/status_policy.rb | |
parent | 8f7f45cf8709a77c42c3af00a4011834df5728cb (diff) |
`return false if direct?`
Diffstat (limited to 'app/policies/status_policy.rb')
-rw-r--r-- | app/policies/status_policy.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/policies/status_policy.rb b/app/policies/status_policy.rb index 4eae066db..f0aeffa66 100644 --- a/app/policies/status_policy.rb +++ b/app/policies/status_policy.rb @@ -14,6 +14,7 @@ class StatusPolicy < ApplicationPolicy def show? return false if local_only? && (current_account.nil? || !current_account.local?) return true if owned? || mention_exists? + return false if direct? if private? following_author? && still_accessible? |