fix: feather push notifications

This commit is contained in:
naskya 2024-05-27 06:47:13 +09:00 committed by Eana Hufwe
parent 8fca35ca06
commit cad3610d2e

View file

@ -134,8 +134,8 @@ async fn encode_mastodon_payload(
serde_json::to_value(token.token)?,
);
// Ice Cubes and Mammoth expect notification_id to be an integer, but never use it.
if client.name == "IceCubesApp" || client.name == "Mammoth" {
// 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()) {
let timestamp = object
.get("notification_id")
.and_then(|id| id.as_str())