This commit is contained in:
Timothy Jaeryang Baek 2024-12-25 00:53:50 -07:00
parent d701b69e05
commit 34cc472c48

View File

@ -198,12 +198,12 @@ async def send_notification(channel, message, active_user_ids):
if webhook_url: if webhook_url:
post_webhook( post_webhook(
webhook_url, webhook_url,
f"#{channel.name} - {WEBUI_URL}/c/{channel.id}\n\n{message.content}", f"#{channel.name} - {WEBUI_URL}/channels/{channel.id}\n\n{message.content}",
{ {
"action": "channel", "action": "channel",
"message": message.content, "message": message.content,
"title": channel.name, "title": channel.name,
"url": f"{WEBUI_URL}/c/{channel.id}", "url": f"{WEBUI_URL}/channels/{channel.id}",
}, },
) )