Node.js based forum software built for the modern web
fix: federate out a Create(Note) instead of just the note... doi...
Julian Lam74d5ced29eef
diff --git a/src/api/activitypub.js b/src/api/activitypub.jsindex 9ab9d89390..0bcdb5b4ef 100644--- a/src/api/activitypub.js+++ b/src/api/activitypub.js@@ -223,7 +223,15 @@ activitypubApi.create.privateNote = enabledCheck(async (caller, { mid, messageOblet targets = await messaging.getUidsInRoom(roomId, 0, -1);targets = targets.filter(uid => !utils.isNumber(uid)); // remote uids only- const payload = await activitypub.mocks.notes.private({ messageObj });+ const object = await activitypub.mocks.notes.private({ messageObj });++ const payload = {+ id: `${object.id}#activity/create/${Date.now()}`,+ type: 'Create',+ to: object.to,+ object,+ };+await activitypub.send('uid', messageObj.fromuid, targets, payload);});