mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-25 00:49:17 +09:00
Block all activities from suspended users (#5076)
This commit is contained in:
parent
16b03fc157
commit
1707002d43
@ -15,6 +15,8 @@ import block from './block';
|
|||||||
import { apLogger } from '../logger';
|
import { apLogger } from '../logger';
|
||||||
|
|
||||||
const self = async (actor: IRemoteUser, activity: Object): Promise<void> => {
|
const self = async (actor: IRemoteUser, activity: Object): Promise<void> => {
|
||||||
|
if (actor.isSuspended) return;
|
||||||
|
|
||||||
switch (activity.type) {
|
switch (activity.type) {
|
||||||
case 'Create':
|
case 'Create':
|
||||||
await create(actor, activity);
|
await create(actor, activity);
|
||||||
|
Loading…
Reference in New Issue
Block a user