diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2019-06-21 15:42:07 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2019-06-21 15:42:07 +0900 |
| commit | 1707002d430e339ce21d1b806d1b8cd5ce76aba6 (patch) | |
| tree | 478dcdf21febae24682cabd4dd753ea61b9de5c5 /src | |
| parent | Improve url-preview (#5077) (diff) | |
| download | sharkey-1707002d430e339ce21d1b806d1b8cd5ce76aba6.tar.gz sharkey-1707002d430e339ce21d1b806d1b8cd5ce76aba6.tar.bz2 sharkey-1707002d430e339ce21d1b806d1b8cd5ce76aba6.zip | |
Block all activities from suspended users (#5076)
Diffstat (limited to 'src')
| -rw-r--r-- | src/remote/activitypub/kernel/index.ts | 2 |
1 files changed, 2 insertions, 0 deletions
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<void> => { + if (actor.isSuspended) return; + switch (activity.type) { case 'Create': await create(actor, activity); |