mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-19 23:10:21 +01:00
feat: add id to reject activity
This commit is contained in:
@@ -20,6 +20,7 @@ const inbox = module.exports;
|
|||||||
|
|
||||||
function reject(type, object, target, senderType = 'uid', id = 0) {
|
function reject(type, object, target, senderType = 'uid', id = 0) {
|
||||||
activitypub.send(senderType, id, target, {
|
activitypub.send(senderType, id, target, {
|
||||||
|
id: `${helpers.resolveActor(senderType, id)}#/activity/reject/${encodeURIComponent(object.id)}`,
|
||||||
type: 'Reject',
|
type: 'Reject',
|
||||||
object: {
|
object: {
|
||||||
type,
|
type,
|
||||||
|
|||||||
Reference in New Issue
Block a user