mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 00:06:33 +02:00
fix: bad args sent to activitypub.record.send
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user