From 89fad52272b1caecc171e0bb979fdde213e369f6 Mon Sep 17 00:00:00 2001 From: Johann150 Date: Sun, 28 May 2023 23:31:06 +0200 Subject: [PATCH] remove redundant check Whether the actor is suspended is already checked in the performOneActivity function and does not need to be checked here again since the actor is still the same as it was there. --- .../backend/src/remote/activitypub/kernel/announce/note.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/backend/src/remote/activitypub/kernel/announce/note.ts b/packages/backend/src/remote/activitypub/kernel/announce/note.ts index 5c6196588..e0861024a 100644 --- a/packages/backend/src/remote/activitypub/kernel/announce/note.ts +++ b/packages/backend/src/remote/activitypub/kernel/announce/note.ts @@ -14,10 +14,6 @@ import { shouldBlockInstance } from '@/misc/should-block-instance.js'; export default async function(resolver: Resolver, actor: IRemoteUser, activity: IAnnounce, targetUri: string): Promise { const uri = getApId(activity); - if (actor.isSuspended) { - return; - } - // Cancel if the announced from host is blocked. if (await shouldBlockInstance(extractDbHost(uri))) return;