From 9052a025989eadce8f9a720f5cc4b9dbde9147c8 Mon Sep 17 00:00:00 2001 From: eternal-flame-AD Date: Thu, 21 Nov 2024 10:20:20 -0600 Subject: [PATCH] fix a mishap during merging upstream Signed-off-by: eternal-flame-AD --- packages/backend/src/core/activitypub/type.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/core/activitypub/type.ts b/packages/backend/src/core/activitypub/type.ts index 57dc2fe5f8..79c561d933 100644 --- a/packages/backend/src/core/activitypub/type.ts +++ b/packages/backend/src/core/activitypub/type.ts @@ -611,7 +611,7 @@ export function yumeDowncastRemove(object: IObject): IRemove | null { export function yumeDowncastLike(object: IObject): ILike | null { if (getApType(object) !== 'Like') return null; const obj = object as ILike; - if (!obj.actor || !obj.object || !obj.target) return null; + if (!obj.actor || !obj.object) return null; return { ...extractMisskeyVendorKeys(object), ...extractSafe(object),