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

This commit is contained in:
Julian Lam
2024-08-13 10:52:27 -04:00
parent 53aee40149
commit 95e6d2b43c

View File

@@ -162,9 +162,10 @@ Notes.assert = async (uid, input, options = { skipChecks: false }) => {
for (const post of unprocessed) { for (const post of unprocessed) {
const { to, cc, attachment } = post._activitypub; 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 // eslint-disable-next-line no-await-in-loop
await Promise.all([ await Promise.all([
topics.reply(post),
Notes.updateLocalRecipients(post.pid, { to, cc }), Notes.updateLocalRecipients(post.pid, { to, cc }),
posts.attachments.update(post.pid, attachment), posts.attachments.update(post.pid, attachment),
]); ]);