Browse Source

禁止非closed.social的mastodon实例 Warning:硬编码

pull/4/head
欧醚 5 years ago
parent
commit
6a4bfbf621
1 changed files with 2 additions and 0 deletions
  1. +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
end end
return !domain.end_with?('closed.social')
if whitelist_mode? if whitelist_mode?
!DomainAllow.allowed?(domain) !DomainAllow.allowed?(domain)
else else

Loading…
Cancel
Save