From 15f60b2497d8914bb67aa5c2355ffbd74a7765a8 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 1 Oct 2024 10:17:08 -0400 Subject: [PATCH] fix: logic tweak --- src/activitypub/notes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/activitypub/notes.js b/src/activitypub/notes.js index 3087216dcf..cf80588ad1 100644 --- a/src/activitypub/notes.js +++ b/src/activitypub/notes.js @@ -51,7 +51,7 @@ Notes.assert = async (uid, input, options = { skipChecks: false }) => { chain = Array.from(await activitypub.contexts.getItems(uid, context.context, { input })); } - if (!chain) { + if (!chain || !chain.length) { // Fall back to inReplyTo traversal on context retrieval failure chain = Array.from(await Notes.getParentChain(uid, input)); }