From d473fd94ce2fd04bffc6cf6ee8f193db309c1d83 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Sun, 28 Jun 2020 16:38:51 +0200 Subject: allow muting from the miniature options initial implementation with a listing refresh except on search results --- client/src/app/shared/shared-moderation/blocklist.service.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'client/src/app/shared/shared-moderation') diff --git a/client/src/app/shared/shared-moderation/blocklist.service.ts b/client/src/app/shared/shared-moderation/blocklist.service.ts index 0caa92782..de677a77b 100644 --- a/client/src/app/shared/shared-moderation/blocklist.service.ts +++ b/client/src/app/shared/shared-moderation/blocklist.service.ts @@ -39,14 +39,14 @@ export class BlocklistService { ) } - blockAccountByUser (account: Account) { + blockAccountByUser (account: Pick) { const body = { accountName: account.nameWithHost } return this.authHttp.post(BlocklistService.BASE_USER_BLOCKLIST_URL + '/accounts', body) .pipe(catchError(err => this.restExtractor.handleError(err))) } - unblockAccountByUser (account: Account) { + unblockAccountByUser (account: Pick) { const path = BlocklistService.BASE_USER_BLOCKLIST_URL + '/accounts/' + account.nameWithHost return this.authHttp.delete(path) @@ -102,14 +102,14 @@ export class BlocklistService { ) } - blockAccountByInstance (account: Account) { + blockAccountByInstance (account: Pick) { const body = { accountName: account.nameWithHost } return this.authHttp.post(BlocklistService.BASE_SERVER_BLOCKLIST_URL + '/accounts', body) .pipe(catchError(err => this.restExtractor.handleError(err))) } - unblockAccountByInstance (account: Account) { + unblockAccountByInstance (account: Pick) { const path = BlocklistService.BASE_SERVER_BLOCKLIST_URL + '/accounts/' + account.nameWithHost return this.authHttp.delete(path) -- cgit v1.2.3