add author from mentioned event

This commit is contained in:
Kieran 2023-06-15 15:49:21 +01:00
parent 0306683c87
commit 0fdcd36877
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

@ -16,7 +16,10 @@ export default function useEventFeed(link: NostrLink) {
f.kinds([unwrap(link.kind)]); f.kinds([unwrap(link.kind)]);
} }
} else { } else {
b.withFilter().id(link.id, link.relays?.at(0)); const f = b.withFilter().id(link.id, link.relays?.at(0));
if (link.author) {
f.authors([link.author]);
}
} }
return b; return b;
}, [link]); }, [link]);