mirror of
https://github.com/wahyd4/links.git
synced 2026-08-08 21:04:53 +10:00
fix: use https universal link for open-discord button (discord:// dead on desktop)
This commit is contained in:
+3
-1
@@ -22,9 +22,11 @@ from django.views.decorators.http import require_POST
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
DISCORD_BOT_ID = os.environ.get('DISCORD_BOT_ID', '1467845106831855796')
|
||||
# 用 https universal link(手机上唤起 APP,桌面上打开网页版),
|
||||
# 比 discord:// custom scheme 兼容性更好(后者在桌面浏览器不可用)。
|
||||
DISCORD_DEEPLINK = os.environ.get(
|
||||
'DISCORD_DEEPLINK',
|
||||
'discord://channels/1467846046590959798/1467846047089954952',
|
||||
'https://discord.com/channels/1467846046590959798/1467846047089954952',
|
||||
)
|
||||
|
||||
# 用 webhook 发消息(限制长度,Discord 单条消息上限 2000 字符)
|
||||
|
||||
Reference in New Issue
Block a user