Browse Source

Disallow remote users from viewing local-only toots

closed-social-glitch-2
Thibaut Girka 5 years ago
committed by ThibG
parent
commit
c4bec9263c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/policies/status_policy.rb

+ 1
- 1
app/policies/status_policy.rb View File

@ -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…
Cancel
Save