use actual ID

This commit is contained in:
ThatOneCalculator 2022-12-11 18:19:25 -08:00
parent bc97bbe360
commit 60505740d5
No known key found for this signature in database
GPG key ID: 8703CACD01000000

View file

@ -5,6 +5,7 @@ import DeliverManager from '@/remote/activitypub/deliver-manager.js';
import { deliver } from '@/queue/index.js'; import { deliver } from '@/queue/index.js';
import { renderActivity } from '@/remote/activitypub/renderer/index.js'; import { renderActivity } from '@/remote/activitypub/renderer/index.js';
import type { IActivity } from '@/remote/activitypub/type.js'; import type { IActivity } from '@/remote/activitypub/type.js';
import { genId } from '@/misc/gen-id.js';
import define from '../../define.js'; import define from '../../define.js';
import { ApiError } from '../../error.js'; import { ApiError } from '../../error.js';
import { apiLogger } from '../../logger.js'; import { apiLogger } from '../../logger.js';
@ -54,7 +55,7 @@ export const paramDef = {
function moveActivity(to: User, from: User) { function moveActivity(to: User, from: User) {
const activity = { const activity = {
id: 'foo', id: genId(),
actor: from, actor: from,
type: 'Move', type: 'Move',
object: from, object: from,