From b80d204b81bdaed1eaa5e9d3b426df83de23f322 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Thu, 16 Jul 2026 01:37:21 -0400 Subject: [PATCH] refac --- backend/open_webui/utils/notifications.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/open_webui/utils/notifications.py b/backend/open_webui/utils/notifications.py index 778301ad32..0ad94a6377 100644 --- a/backend/open_webui/utils/notifications.py +++ b/backend/open_webui/utils/notifications.py @@ -273,7 +273,7 @@ def _notification_webhook_content(event: Any) -> tuple[str, str, dict[str, Any], url = f'{url[: -len(f"/c/{chat_id}")].rstrip("/")}/{chat_id}' body = '\n'.join(part for part in (content, url) if part) return ( - title, + f'**{title}**', body, { 'action': 'chat', @@ -293,7 +293,7 @@ def _notification_webhook_content(event: Any) -> tuple[str, str, dict[str, Any], url = f'{url[: -len(f"/c/{chat_id}")].rstrip("/")}/{chat_id}' body = '\n'.join(part for part in (content, url) if part) return ( - title, + f'**{title}**', body, { 'action': 'chat_failed', @@ -310,7 +310,7 @@ def _notification_webhook_content(event: Any) -> tuple[str, str, dict[str, Any], url = str(data.get('url') or '') body = '\n'.join(part for part in (content, url) if part) return ( - f'#{channel_name}', + f'**#{channel_name}**', body, { 'action': 'channel', @@ -324,7 +324,7 @@ def _notification_webhook_content(event: Any) -> tuple[str, str, dict[str, Any], if event.event == CALENDAR_ALERT_EVENT: title = str(data.get('title') or event.message or 'Calendar alert') starts_in = str(data.get('starts_in') or '') - message = f'{title}: starting {starts_in}'.strip() + message = f'**{title}**\nstarting {starts_in}'.strip() return ( '', message,