mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
Merge branch 'render-unknown' into 'main'
Don't limit statuses to kind 1 See merge request soapbox-pub/ditto!484
This commit is contained in:
commit
ca1455c59a
2 changed files with 1 additions and 2 deletions
|
|
@ -50,7 +50,6 @@ const statusController: AppController = async (c) => {
|
|||
const id = c.req.param('id');
|
||||
|
||||
const event = await getEvent(id, {
|
||||
kind: 1,
|
||||
signal: AbortSignal.timeout(1500),
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -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([{ 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) {
|
||||
result.push(parentEvent);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue