This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
mastodon
Watch
3
Star
0
Fork
2
Code
Issues
5
Pull Requests
0
Projects
0
Releases
3
Wiki
Activity
Browse Source
Disallow remote users from viewing local-only toots
closed-social-glitch-2
Thibaut Girka
6 years ago
committed by
ThibG
parent
9f2945ef80
commit
c4bec9263c
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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?
Write
Preview
Loading…
Cancel
Save