mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
refac
This commit is contained in:
parent
d701b69e05
commit
34cc472c48
1 changed files with 2 additions and 2 deletions
|
|
@ -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}",
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue