From 7047ddce3e065e998b3910649a7268399aa39256 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Wed, 23 Aug 2023 19:55:26 -0700 Subject: [PATCH] refactor: :recycle: types in AP kernel This file seriously needs to be refactored properly... --- packages/backend/src/remote/activitypub/kernel/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/remote/activitypub/kernel/index.ts b/packages/backend/src/remote/activitypub/kernel/index.ts index 58e354a51..3abae80dc 100644 --- a/packages/backend/src/remote/activitypub/kernel/index.ts +++ b/packages/backend/src/remote/activitypub/kernel/index.ts @@ -37,7 +37,7 @@ import remove from "./remove/index.js"; import block from "./block/index.js"; import flag from "./flag/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 { shouldBlockInstance } from "@/misc/should-block-instance.js"; @@ -106,6 +106,6 @@ async function performOneActivity( } else if (isMove(activity)) { await move(actor, activity); } else { - apLogger.warn(`unrecognized activity type: ${(activity as any).type}`); + apLogger.warn(`Unrecognized activity type: ${(activity as IActivity).type}`); } }