remove redundant check
ci/woodpecker/push/lint-client Pipeline failed Details
ci/woodpecker/push/lint-backend Pipeline failed Details
ci/woodpecker/push/lint-foundkey-js Pipeline was successful Details
ci/woodpecker/push/build Pipeline was successful Details
ci/woodpecker/push/lint-sw Pipeline failed Details
ci/woodpecker/push/test Pipeline failed Details

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.
This commit is contained in:
Johann150 2023-05-28 23:31:06 +02:00
parent 2696c34f6c
commit 89fad52272
Signed by: Johann150
GPG Key ID: 9EE6577A2A06F8F1
1 changed files with 0 additions and 4 deletions

View File

@ -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<void> {
const uri = getApId(activity);
if (actor.isSuspended) {
return;
}
// Cancel if the announced from host is blocked.
if (await shouldBlockInstance(extractDbHost(uri))) return;