fix id of move activity

This commit is contained in:
Namekuji 2023-04-07 06:26:13 -04:00
parent 3b9d9cb635
commit b03479c7b4
1 changed files with 1 additions and 2 deletions

View File

@ -3,7 +3,6 @@ import { resolveUser } from "@/remote/resolve-user.js";
import { DAY } from "@/const.js"; import { DAY } from "@/const.js";
import DeliverManager from "@/remote/activitypub/deliver-manager.js"; import DeliverManager from "@/remote/activitypub/deliver-manager.js";
import { renderActivity } from "@/remote/activitypub/renderer/index.js"; import { renderActivity } from "@/remote/activitypub/renderer/index.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";
@ -81,7 +80,7 @@ export const paramDef = {
function moveActivity(toUrl: string, fromUrl: string) { function moveActivity(toUrl: string, fromUrl: string) {
const activity = { const activity = {
id: genId(), id: null,
actor: fromUrl, actor: fromUrl,
type: "Move", type: "Move",
object: fromUrl, object: fromUrl,