Browse Source

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

pull/4/head
欧醚 4 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
return !domain.end_with?('closed.social')
if whitelist_mode?
!DomainAllow.allowed?(domain)
else

Loading…
Cancel
Save