Node.js based forum software built for the modern web
fix: defer postdata retrieval
Julian Lam9062691aa27c
diff --git a/src/activitypub/inbox.js b/src/activitypub/inbox.jsindex 06a9d09111..da75f23627 100644--- a/src/activitypub/inbox.js+++ b/src/activitypub/inbox.js@@ -91,10 +91,10 @@ inbox.update = async (req) => {switch (object.type) {case 'Note': {- const postData = await activitypub.mocks.post(object);const exists = await posts.exists(object.id);try {if (exists) {+ const postData = await activitypub.mocks.post(object);await posts.edit(postData);const isDeleted = await posts.getPostField(object.id, 'deleted');if (isDeleted) {