Change activity IDs for api.accounts methods
This commit is contained in:
parent
e5abc50884
commit
03356275e4
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue