mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 05:57:32 -07:00
use actual ID
This commit is contained in:
parent
367e19727e
commit
2039e70177
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue