From ac744cd4629431605c0d0cc9fc5f81a9b77f8b6a Mon Sep 17 00:00:00 2001 From: "zyn on thu.closed.social" Date: Sun, 16 Feb 2020 16:22:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88=E9=94=99=E8=AF=AF=E7=9A=84?= =?UTF-8?q?=E4=BF=AE=E6=94=B9(=E7=9B=B4=E6=8E=A5=E4=BD=BF=E7=94=A8mastodon?= =?UTF-8?q?=E7=9A=84=E7=99=BD=E5=90=8D=E5=8D=95=E6=A8=A1=E5=BC=8F=E6=8E=A7?= =?UTF-8?q?=E5=88=B6=E6=9D=83=E9=99=90)=EF=BC=8C=E9=92=88=E5=AF=B9?= =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E5=86=85=E7=BD=AE=E6=B5=8F=E8=A7=88=E5=99=A8?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/helpers/domain_control_helper.rb | 2 -- public/auto_comp_email.js | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/domain_control_helper.rb b/app/helpers/domain_control_helper.rb index 18d37b9cc..067b2c2cd 100644 --- a/app/helpers/domain_control_helper.rb +++ b/app/helpers/domain_control_helper.rb @@ -12,8 +12,6 @@ module DomainControlHelper end end - return !domain.end_with?('closed.social') - if whitelist_mode? !DomainAllow.allowed?(domain) else diff --git a/public/auto_comp_email.js b/public/auto_comp_email.js index ebf3ae255..aec5730bb 100644 --- a/public/auto_comp_email.js +++ b/public/auto_comp_email.js @@ -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"); if(!em) em = document.getElementById("user_email");