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
禁止非closed.social的mastodon实例 Warning:硬编码
pull/4/head
欧醚
5 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