From 60505740d52d09123d194a3edf2179b0dd70f3f8 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Sun, 11 Dec 2022 18:19:25 -0800 Subject: [PATCH] use actual ID --- packages/backend/src/server/api/endpoints/i/move.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/backend/src/server/api/endpoints/i/move.ts b/packages/backend/src/server/api/endpoints/i/move.ts index 08d7368cdd..4235336926 100644 --- a/packages/backend/src/server/api/endpoints/i/move.ts +++ b/packages/backend/src/server/api/endpoints/i/move.ts @@ -5,6 +5,7 @@ import DeliverManager from '@/remote/activitypub/deliver-manager.js'; import { deliver } from '@/queue/index.js'; import { renderActivity } from '@/remote/activitypub/renderer/index.js'; import type { IActivity } from '@/remote/activitypub/type.js'; +import { genId } from '@/misc/gen-id.js'; import define from '../../define.js'; import { ApiError } from '../../error.js'; import { apiLogger } from '../../logger.js'; @@ -54,7 +55,7 @@ export const paramDef = { function moveActivity(to: User, from: User) { const activity = { - id: 'foo', + id: genId(), actor: from, type: 'Move', object: from,