Skip to content

Node.js based forum software built for the modern web

fix: move topic reply call in notes.assert to its own line

Julian Lam95e6d2b43c32
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),
]);