mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-24 18:13:42 +01:00
Disallow remote users from viewing local-only toots
This commit is contained in:
parent
9f2945ef80
commit
c4bec9263c
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue