From 4ad09b5ae2fa7fa94a9da57d746adf40394e5365 Mon Sep 17 00:00:00 2001 From: naskya Date: Mon, 27 May 2024 07:16:21 +0900 Subject: [PATCH] fix: Maser push notifications --- packages/backend-rs/src/service/push_notification.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend-rs/src/service/push_notification.rs b/packages/backend-rs/src/service/push_notification.rs index fa2b261263..97fd585923 100644 --- a/packages/backend-rs/src/service/push_notification.rs +++ b/packages/backend-rs/src/service/push_notification.rs @@ -134,8 +134,8 @@ async fn encode_mastodon_payload( serde_json::to_value(token.token)?, ); - // Ice Cubes, Mammoth, and feather expect notification_id to be an integer, but never use it. - if ["IceCubesApp", "Mammoth", "feather"].contains(&client.name.as_str()) { + // Some apps expect notification_id to be an integer, but never use it. + if ["IceCubesApp", "Mammoth", "feather", "MaserApp"].contains(&client.name.as_str()) { let timestamp = object .get("notification_id") .and_then(|id| id.as_str())