Skip to content

Node.js based forum software built for the modern web

fix: bad args sent to activitypub.record.send

Julian Lamab3c39eb6202
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;
}