mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-24 00:54:02 -05:00
Disallow remote users from viewing local-only toots
This commit is contained in:
parent
9f2945ef80
commit
c4bec9263c
@ -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?
|
||||||
|
Loading…
Reference in New Issue
Block a user