fix(zap notification): put kind 9735 in the first filter

This commit is contained in:
P. Reis 2024-09-05 18:43:02 -03:00
parent 4373a1eea9
commit a8900b3217

View file

@ -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);
};