Don't limit statuses to kind 1

This commit is contained in:
Alex Gleason 2024-09-08 09:05:23 -05:00
parent 8a94e8deb3
commit 2309fd72d1
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
2 changed files with 1 additions and 2 deletions

View file

@ -50,7 +50,6 @@ const statusController: AppController = async (c) => {
const id = c.req.param('id'); const id = c.req.param('id');
const event = await getEvent(id, { const event = await getEvent(id, {
kind: 1,
signal: AbortSignal.timeout(1500), signal: AbortSignal.timeout(1500),
}); });

View file

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