fix: Maser push notifications

This commit is contained in:
naskya 2024-05-27 07:16:21 +09:00 committed by Eana Hufwe
parent cad3610d2e
commit 4ad09b5ae2

View file

@ -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())