forked from FoundKeyGang/FoundKey
Block all activities from suspended users (#5076)
This commit is contained in:
parent
16b03fc157
commit
1707002d43
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue