Node.js based forum software built for the modern web
fix: include bare announces in 'createish' conditional
Julian Lame60e12f1a83d
diff --git a/src/activitypub/inbox.js b/src/activitypub/inbox.jsindex 67aeafac09..8b4c28514e 100644--- a/src/activitypub/inbox.js+++ b/src/activitypub/inbox.js@@ -548,7 +548,9 @@ inbox.announce = async (req) => {const fromRelay = await activitypub.relays.is(actor);// Protections for non-Creates from category actors- const createish = object.type === 'Create' || activitypub._constants.acceptedPostTypes.includes(object.type);+ const createish =+ !object.type || object.type === 'Create' ||+ activitypub._constants.acceptedPostTypes.includes(object.type);if (!createish && cid) {let id = object?.object?.id || object.object; // expecting object referenceconst { id: localId } = await activitypub.helpers.resolveLocalId(id);