X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fshared-moderation%2Fblocklist.service.ts;h=de677a77b18ccde9d87470ab02495d1da8262128;hb=951b582f52d0694865f020f0e53ccfad2d2d6033;hp=0caa927828ccccea62d7b0b48b8381c09da139f5;hpb=67ed6552b831df66713bac9e672738796128d33f;p=github%2FChocobozzz%2FPeerTube.git 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)