Disallow remote users from viewing local-only toots
parent
517b7a028d
commit
919fc15097
|
@ -12,7 +12,7 @@ class StatusPolicy < ApplicationPolicy
|
|||
end
|
||||
|
||||
def show?
|
||||
return false if local_only? && current_account.nil?
|
||||
return false if local_only? && (current_account.nil? || !current_account.local?)
|
||||
|
||||
if direct?
|
||||
owned? || mention_exists?
|
||||
|
|
Loading…
Reference in New Issue