Change activity IDs for api.accounts methods

This commit is contained in:
Niko 2022-03-05 21:32:25 +01:00
parent e5abc50884
commit 03356275e4
1 changed files with 5 additions and 5 deletions

View File

@ -149,7 +149,7 @@ async function followAccept(a1, a2) {
const actor = await apex.store.getObject(activity.object, true) const actor = await apex.store.getObject(activity.object, true)
const payload = { const payload = {
id: utils.apRandomURL(), id: utils.apRandomURL('s/:id'),
type: 'Accept', type: 'Accept',
actor: activity.object, actor: activity.object,
to: activity.actor, to: activity.actor,
@ -196,7 +196,7 @@ module.exports = {
const actor = await apex.store.getObject( const actor = await apex.store.getObject(
apID(res.locals.user.username), true) apID(res.locals.user.username), true)
const payload = { const payload = {
id: utils.apRandomURL(), id: utils.apRandomURL('s/:id'),
type: 'Follow', type: 'Follow',
actor: apID(res.locals.user.username), actor: apID(res.locals.user.username),
object: req.query.url, object: req.query.url,
@ -219,7 +219,7 @@ module.exports = {
const actor = await apex.store.getObject( const actor = await apex.store.getObject(
apID(res.locals.user.username), true) apID(res.locals.user.username), true)
const payload = { const payload = {
id: utils.apRandomURL(), id: utils.apRandomURL('s/:id'),
type: 'Undo', type: 'Undo',
actor: apID(res.locals.user.username), actor: apID(res.locals.user.username),
to: req.query.url, to: req.query.url,
@ -251,7 +251,7 @@ module.exports = {
const actor = await apex.store.getObject( const actor = await apex.store.getObject(
apID(res.locals.user.username), true) apID(res.locals.user.username), true)
const payload = { const payload = {
id: utils.apRandomURL(), id: utils.apRandomURL('s/:id'),
type: 'Block', type: 'Block',
actor: apID(res.locals.user.username), actor: apID(res.locals.user.username),
object: req.query.url, object: req.query.url,
@ -278,7 +278,7 @@ module.exports = {
const actor = await apex.store.getObject( const actor = await apex.store.getObject(
apID(res.locals.user.username), true) apID(res.locals.user.username), true)
const payload = { const payload = {
id: utils.apRandomURL(), id: utils.apRandomURL('s/:id'),
type: 'Undo', type: 'Undo',
actor: apID(res.locals.user.username), actor: apID(res.locals.user.username),
to: req.query.url, to: req.query.url,