diff --git a/client/src/app/shared/shared-moderation/user-ban-modal.component.html b/client/src/app/shared/shared-moderation/user-ban-modal.component.html index b41ae230d..6c83cc9cc 100644 --- a/client/src/app/shared/shared-moderation/user-ban-modal.component.html +++ b/client/src/app/shared/shared-moderation/user-ban-modal.component.html @@ -21,6 +21,13 @@ A banned user will no longer be able to login. +
+ +
+
{ + const account = new Account(user.account) + this.blocklistService.blockAccountByInstance(account) + .subscribe({ + next: () => { + this.notifier.success($localize`Account ${user.username} muted by the instance.`) + account.mutedByInstance = true + }, + + error: err => this.notifier.error(err.message) + }) + }) + } + this.hide() },