mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Merge branch 'fix-zap-notification' into 'main'
fix(zap notification): put kind 9735 in the first filter See merge request soapbox-pub/ditto!477
This commit is contained in:
commit
a7292b1b8d
1 changed files with 3 additions and 4 deletions
|
|
@ -52,6 +52,9 @@ const notificationsController: AppController = async (c) => {
|
||||||
if (types.has('favourite') || types.has('pleroma:emoji_reaction')) {
|
if (types.has('favourite') || types.has('pleroma:emoji_reaction')) {
|
||||||
kinds.add(7);
|
kinds.add(7);
|
||||||
}
|
}
|
||||||
|
if (types.has('ditto:zap')) {
|
||||||
|
kinds.add(9735);
|
||||||
|
}
|
||||||
|
|
||||||
const filter: NostrFilter = {
|
const filter: NostrFilter = {
|
||||||
kinds: [...kinds],
|
kinds: [...kinds],
|
||||||
|
|
@ -69,10 +72,6 @@ const notificationsController: AppController = async (c) => {
|
||||||
filters.push({ kinds: [30360], authors: [Conf.pubkey], '#p': [pubkey], ...params });
|
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);
|
return renderNotifications(filters, types, params, c);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue