From ba624540c9cf86ebfb8a9a62e49665f41b23fe8e Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 11 Aug 2021 11:28:37 -0400 Subject: [PATCH] Adding blockcommunityresponse --- src/http.ts | 3 ++- src/interfaces/api/community.ts | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/http.ts b/src/http.ts index 2f32cb2..2a582aa 100644 --- a/src/http.ts +++ b/src/http.ts @@ -17,6 +17,7 @@ import { BanFromCommunity, BanFromCommunityResponse, BlockCommunity, + BlockCommunityResponse, CommunityResponse, CreateCommunity, DeleteCommunity, @@ -173,7 +174,7 @@ export class LemmyHttp { return this.wrapper(HttpType.Post, '/community/follow', form); } - async blockCommunity(form: BlockCommunity): Promise { + async blockCommunity(form: BlockCommunity): Promise { return this.wrapper(HttpType.Post, '/community/block', form); } diff --git a/src/interfaces/api/community.ts b/src/interfaces/api/community.ts index 1fd5b65..8959468 100644 --- a/src/interfaces/api/community.ts +++ b/src/interfaces/api/community.ts @@ -1,7 +1,5 @@ import { - CommunityFollowerView, CommunityModeratorView, - CommunityBlockView, CommunityView, PersonViewSafe, } from '../views'; @@ -117,3 +115,8 @@ export interface BlockCommunity { block: boolean; auth: string; } + +export interface BlockCommunityResponse { + community_view: CommunityView; + blocked: boolean; +}