From a8900b3217b0cec1995992ea5bc6f48b5204834c Mon Sep 17 00:00:00 2001 From: "P. Reis" Date: Thu, 5 Sep 2024 18:43:02 -0300 Subject: [PATCH] fix(zap notification): put kind 9735 in the first filter --- src/controllers/api/notifications.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/controllers/api/notifications.ts b/src/controllers/api/notifications.ts index 864e54d4..1b9c746a 100644 --- a/src/controllers/api/notifications.ts +++ b/src/controllers/api/notifications.ts @@ -52,6 +52,9 @@ const notificationsController: AppController = async (c) => { if (types.has('favourite') || types.has('pleroma:emoji_reaction')) { kinds.add(7); } + if (types.has('ditto:zap')) { + kinds.add(9735); + } const filter: NostrFilter = { kinds: [...kinds], @@ -69,10 +72,6 @@ const notificationsController: AppController = async (c) => { filters.push({ kinds: [30360], authors: [Conf.pubkey], '#p': [pubkey], ...params }); } - if (types.has('ditto:zap')) { - filters.push({ kinds: [9735], '#p': [pubkey], ...params }); - } - return renderNotifications(filters, types, params, c); };