mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
getAncestors: only query kind 1
This commit is contained in:
parent
f7a9bf9ffd
commit
eead178c6a
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue