mirror of
https://github.com/open-webui/open-webui
synced 2024-12-28 06:42:47 +00:00
refac
This commit is contained in:
parent
d701b69e05
commit
34cc472c48
@ -198,12 +198,12 @@ async def send_notification(channel, message, active_user_ids):
|
||||
if webhook_url:
|
||||
post_webhook(
|
||||
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",
|
||||
"message": message.content,
|
||||
"title": channel.name,
|
||||
"url": f"{WEBUI_URL}/c/{channel.id}",
|
||||
"url": f"{WEBUI_URL}/channels/{channel.id}",
|
||||
},
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user