diff --git a/src/activitypub/index.js b/src/activitypub/index.js index e66becbea9..9959f97ffb 100644 --- a/src/activitypub/index.js +++ b/src/activitypub/index.js @@ -381,7 +381,10 @@ ActivityPub._sendMessage = async function (uri, id, type, payload) { }); if (String(response.statusCode).startsWith('2')) { - ActivityPub.record.send(payload.type, uri); + ActivityPub.record.send({ + type: payload.type, + target: uri, + }); ActivityPub.helpers.log(`[activitypub/send] Successfully sent ${payload.type} to ${uri}`); return true; }