mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 11:57:51 +01:00
refac
This commit is contained in:
@@ -22,7 +22,7 @@ def post_webhook(url: str, message: str, event_data: dict) -> bool:
|
|||||||
payload["content"] = (
|
payload["content"] = (
|
||||||
message
|
message
|
||||||
if len(message) > 2000
|
if len(message) > 2000
|
||||||
else f"{message[: 2000 - 14]}... (truncated)"
|
else f"{message[: 2000 - 20]}... (truncated)"
|
||||||
)
|
)
|
||||||
# Microsoft Teams Webhooks
|
# Microsoft Teams Webhooks
|
||||||
elif "webhook.office.com" in url:
|
elif "webhook.office.com" in url:
|
||||||
|
|||||||
Reference in New Issue
Block a user