This website works better with JavaScript.
Home
Explore
Help
Sign In
jyt94
/
closedSocialMastodon
forked from
closed-social/mastodon
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
禁止非closed.social的mastodon实例 Warning:硬编码
closed-social-v3
欧醚
4 years ago
parent
a31aaeef04
commit
6a4bfbf621
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
app/helpers/domain_control_helper.rb
+ 2
- 0
app/helpers/domain_control_helper.rb
View File
@ -12,6 +12,8 @@ module DomainControlHelper
end
end
return
!
domain
.
end_with?
(
'closed.social'
)
if
whitelist_mode?
!
DomainAllow
.
allowed?
(
domain
)
else
Write
Preview
Loading…
Cancel
Save