From 1707002d430e339ce21d1b806d1b8cd5ce76aba6 Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Fri, 21 Jun 2019 15:42:07 +0900 Subject: [PATCH] Block all activities from suspended users (#5076) --- src/remote/activitypub/kernel/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/remote/activitypub/kernel/index.ts b/src/remote/activitypub/kernel/index.ts index d1251817fa..a0646bdd67 100644 --- a/src/remote/activitypub/kernel/index.ts +++ b/src/remote/activitypub/kernel/index.ts @@ -15,6 +15,8 @@ import block from './block'; import { apLogger } from '../logger'; const self = async (actor: IRemoteUser, activity: Object): Promise => { + if (actor.isSuspended) return; + switch (activity.type) { case 'Create': await create(actor, activity);