fix: bad args sent to activitypub.record.send

This commit is contained in:
Julian Lam
2026-04-01 14:09:56 -04:00
parent 30b494a14d
commit ab3c39eb62

View File

@@ -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;
}