mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
feat: add ids for undoing follows
This commit is contained in:
@@ -54,8 +54,10 @@ activitypubApi.unfollow = enabledCheck(async (caller, { uid }) => {
|
||||
}
|
||||
|
||||
await activitypub.send('uid', caller.uid, [result.actorUri], {
|
||||
id: `${nconf.get('url')}/uid/${caller.uid}#activity/undo:follow/${result.username}@${result.hostname}`,
|
||||
type: 'Undo',
|
||||
object: {
|
||||
id: `${nconf.get('url')}/uid/${caller.uid}#activity/follow/${result.username}@${result.hostname}`,
|
||||
type: 'Follow',
|
||||
actor: `${nconf.get('url')}/uid/${caller.uid}`,
|
||||
object: result.actorUri,
|
||||
|
||||
Reference in New Issue
Block a user