diff --git a/api/src/api/accounts.js b/api/src/api/accounts.js index 99fe2b9..51c2f22 100644 --- a/api/src/api/accounts.js +++ b/api/src/api/accounts.js @@ -149,7 +149,7 @@ async function followAccept(a1, a2) { const actor = await apex.store.getObject(activity.object, true) const payload = { - id: utils.apRandomURL(), + id: utils.apRandomURL('s/:id'), type: 'Accept', actor: activity.object, to: activity.actor, @@ -196,7 +196,7 @@ module.exports = { const actor = await apex.store.getObject( apID(res.locals.user.username), true) const payload = { - id: utils.apRandomURL(), + id: utils.apRandomURL('s/:id'), type: 'Follow', actor: apID(res.locals.user.username), object: req.query.url, @@ -219,7 +219,7 @@ module.exports = { const actor = await apex.store.getObject( apID(res.locals.user.username), true) const payload = { - id: utils.apRandomURL(), + id: utils.apRandomURL('s/:id'), type: 'Undo', actor: apID(res.locals.user.username), to: req.query.url, @@ -251,7 +251,7 @@ module.exports = { const actor = await apex.store.getObject( apID(res.locals.user.username), true) const payload = { - id: utils.apRandomURL(), + id: utils.apRandomURL('s/:id'), type: 'Block', actor: apID(res.locals.user.username), object: req.query.url, @@ -278,7 +278,7 @@ module.exports = { const actor = await apex.store.getObject( apID(res.locals.user.username), true) const payload = { - id: utils.apRandomURL(), + id: utils.apRandomURL('s/:id'), type: 'Undo', actor: apID(res.locals.user.username), to: req.query.url,