Fix param replaceable even format in filters

This commit is contained in:
austinkelsay 2025-02-28 11:37:43 -06:00
parent ddb16df8ce
commit acabf995c6
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ export function useZapsQuery({ event, type }) {
const filters = [
{ kinds: [9735], "#e": [event.id] },
{ kinds: [9735], "#a": [`${event.kind}:${event.id}:${event.d}`] }
{ kinds: [9735], "#a": [`${event.kind}:${event.pubkey}:${event.d}`] }
];
const events = await ndk.fetchEvents(filters, { closeOnEose: true });

View File

@ -26,7 +26,7 @@ export function useZapsSubscription({ event }) {
try {
const filters = [
{ kinds: [9735], "#e": [event.id] },
{ kinds: [9735], "#a": [`${event.kind}:${event.pubkey}:${event.id}`] }
{ kinds: [9735], "#a": [`${event.kind}:${event.pubkey}:${event.d}`] }
];
subscription = ndk.subscribe(filters, {