refactor: ♻️ types in AP kernel

This file seriously needs to be refactored properly...
This commit is contained in:
ThatOneCalculator 2023-08-23 19:55:26 -07:00
parent 8b57431ca8
commit 7047ddce3e
No known key found for this signature in database
GPG Key ID: 8703CACD01000000

View File

@ -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}`);
} }
} }