Disallow remote users from viewing local-only toots

lolsob-rspec
Thibaut Girka 2018-07-31 15:00:08 +02:00 committed by ThibG
parent 517b7a028d
commit 919fc15097
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ class StatusPolicy < ApplicationPolicy
end end
def show? def show?
return false if local_only? && current_account.nil? return false if local_only? && (current_account.nil? || !current_account.local?)
if direct? if direct?
owned? || mention_exists? owned? || mention_exists?