getAncestors: only query kind 1

This commit is contained in:
Alex Gleason 2024-06-05 11:05:07 -05:00
parent f7a9bf9ffd
commit eead178c6a
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ async function getAncestors(store: NStore, event: NostrEvent, result: NostrEvent
const inReplyTo = replyTag ? replyTag[1] : undefined;
if (inReplyTo) {
const [parentEvent] = await store.query([{ ids: [inReplyTo], limit: 1 }]);
const [parentEvent] = await store.query([{ kinds: [1], ids: [inReplyTo], limit: 1 }]);
if (parentEvent) {
result.push(parentEvent);