`return false if direct?`

master
multiple creatures 2020-01-13 16:57:05 -06:00
parent 8f7f45cf87
commit fd8b5299fd
1 changed files with 1 additions and 0 deletions

View File

@ -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?