feat(clean_url): disqus url

This commit is contained in:
MDLeom 2025-05-19 10:10:13 +00:00
parent 5d562cd88e
commit e54e50c9be
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
1 changed files with 2 additions and 2 deletions

View File

@ -39,8 +39,8 @@ const deSafelink = (urlStr) => {
url = new URL(url.searchParams.get('a'))
}
// ShopMy
if (url.hostname === 'api.shopmy.us' && url.pathname === '/api/redirect_click') {
// ShopMy & Disqus
if ((url.hostname === 'api.shopmy.us' && url.pathname === '/api/redirect_click') || url.hostname === 'disq.us') {
url = new URL(url.searchParams.get('url'))
}