feat: add ids for undoing follows

This commit is contained in:
Opliko
2024-04-10 01:11:49 +02:00
parent 66b0d81caf
commit 3cc09d204f

View File

@@ -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,