Browse Source

取消错误的修改(直接使用mastodon的白名单模式控制权限),针对微信内置浏览器跳转

pull/4/head
欧醚 4 years ago
parent
commit
ac744cd462
2 changed files with 2 additions and 2 deletions
  1. +0
    -2
      app/helpers/domain_control_helper.rb
  2. +2
    -0
      public/auto_comp_email.js

+ 0
- 2
app/helpers/domain_control_helper.rb View File

@ -12,8 +12,6 @@ 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

+ 2
- 0
public/auto_comp_email.js View File

@ -1,3 +1,5 @@
if(navigator.userAgent.search('MicroMessenger') !== -1)
location.href = `https://closed.social/tools/safe_jump/?go=${encodeURIComponent(location.href)}&t=${encodeURIComponent(document.title)}`;
var em = document.getElementById("registration_user_email"); var em = document.getElementById("registration_user_email");
if(!em) if(!em)
em = document.getElementById("user_email"); em = document.getElementById("user_email");

Loading…
Cancel
Save