refactor: ♻️ types in AP kernel
This file seriously needs to be refactored properly...
This commit is contained in:
parent
8b57431ca8
commit
7047ddce3e
@ -37,7 +37,7 @@ import remove from "./remove/index.js";
|
|||||||
import block from "./block/index.js";
|
import block from "./block/index.js";
|
||||||
import flag from "./flag/index.js";
|
import flag from "./flag/index.js";
|
||||||
import move from "./move/index.js";
|
import move from "./move/index.js";
|
||||||
import type { IObject } from "../type.js";
|
import type { IObject, IActivity } from "../type.js";
|
||||||
import { extractDbHost } from "@/misc/convert-host.js";
|
import { extractDbHost } from "@/misc/convert-host.js";
|
||||||
import { shouldBlockInstance } from "@/misc/should-block-instance.js";
|
import { shouldBlockInstance } from "@/misc/should-block-instance.js";
|
||||||
|
|
||||||
@ -106,6 +106,6 @@ async function performOneActivity(
|
|||||||
} else if (isMove(activity)) {
|
} else if (isMove(activity)) {
|
||||||
await move(actor, activity);
|
await move(actor, activity);
|
||||||
} else {
|
} else {
|
||||||
apLogger.warn(`unrecognized activity type: ${(activity as any).type}`);
|
apLogger.warn(`Unrecognized activity type: ${(activity as IActivity).type}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user