From aa1e8231f6919a335983028e25ee93d5a4932fa5 Mon Sep 17 00:00:00 2001 From: benya Date: Mon, 6 Apr 2026 00:58:56 +0300 Subject: [PATCH] fix: restore notification dispatch preview formatting - avoid keyword argument mismatch in push preview label generation --- app/notifications/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/notifications/service.py b/app/notifications/service.py index dce6ac2..c01850f 100644 --- a/app/notifications/service.py +++ b/app/notifications/service.py @@ -72,7 +72,7 @@ async def dispatch_message_notifications(db: AsyncSession, message: Message) -> preview_image_url = None if first_attachment and first_attachment.file_type.lower().startswith("image/"): preview_image_url = first_attachment.file_url - preview_body = _message_preview_label(message, preview_image_url=preview_image_url) + preview_body = _message_preview_label(message, preview_image_url) message_type = message.type.value if hasattr(message.type, "value") else str(message.type) for recipient in users: