This commit is contained in:
Timothy Jaeryang Baek committed 2026-07-16 01:37:21 -04:00
1 parent e6c2b8ad59
commit b80d204b81
1 file changed
+4 -4
+4 -4
View File
@@ -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}' url = f'{url[: -len(f"/c/{chat_id}")].rstrip("/")}/{chat_id}'
body = '\n'.join(part for part in (content, url) if part) body = '\n'.join(part for part in (content, url) if part)
return ( return (
title, f'**{title}**',
body, body,
{ {
'action': 'chat', '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}' url = f'{url[: -len(f"/c/{chat_id}")].rstrip("/")}/{chat_id}'
body = '\n'.join(part for part in (content, url) if part) body = '\n'.join(part for part in (content, url) if part)
return ( return (
title, f'**{title}**',
body, body,
{ {
'action': 'chat_failed', '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 '') url = str(data.get('url') or '')
body = '\n'.join(part for part in (content, url) if part) body = '\n'.join(part for part in (content, url) if part)
return ( return (
f'#{channel_name}', f'**#{channel_name}**',
body, body,
{ {
'action': 'channel', 'action': 'channel',
@@ -324,7 +324,7 @@ def _notification_webhook_content(event: Any) -> tuple[str, str, dict[str, Any],
if event.event == CALENDAR_ALERT_EVENT: if event.event == CALENDAR_ALERT_EVENT:
title = str(data.get('title') or event.message or 'Calendar alert') title = str(data.get('title') or event.message or 'Calendar alert')
starts_in = str(data.get('starts_in') or '') starts_in = str(data.get('starts_in') or '')
message = f'{title}: starting {starts_in}'.strip() message = f'**{title}**\nstarting {starts_in}'.strip()
return ( return (
'', '',
message, message,