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
取消错误的修改(直接使用mastodon的白名单模式控制权限),针对微信内置浏览器跳转
pull/4/head
欧醚
4 years ago
parent
dbd802d13b
commit
ac744cd462
2 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+0
-2
app/helpers/domain_control_helper.rb
+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
return
!
domain
.
end_with?
(
'closed.social'
)
if
whitelist_mode?
!
DomainAllow
.
allowed?
(
domain
)
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"
)
;
if
(
!
em
)
em
=
document
.
getElementById
(
"user_email"
)
;
Write
Preview
Loading…
Cancel
Save