From 95e6d2b43c326a517a59b595155fff87992858b2 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 13 Aug 2024 10:52:27 -0400 Subject: [PATCH] fix: move topic reply call in notes.assert to its own line --- src/activitypub/notes.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/activitypub/notes.js b/src/activitypub/notes.js index 3b996c90bd..0154af5b77 100644 --- a/src/activitypub/notes.js +++ b/src/activitypub/notes.js @@ -162,9 +162,10 @@ Notes.assert = async (uid, input, options = { skipChecks: false }) => { for (const post of unprocessed) { const { to, cc, attachment } = post._activitypub; + // eslint-disable-next-line no-await-in-loop + await topics.reply(post); // eslint-disable-next-line no-await-in-loop await Promise.all([ - topics.reply(post), Notes.updateLocalRecipients(post.pid, { to, cc }), posts.attachments.update(post.pid, attachment), ]);