mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-11-29 15:51:12 +00:00
Adding blockcommunityresponse
This commit is contained in:
parent
bf194f306b
commit
ba624540c9
2 changed files with 7 additions and 3 deletions
|
@ -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<CommunityResponse> {
|
||||
async blockCommunity(form: BlockCommunity): Promise<BlockCommunityResponse> {
|
||||
return this.wrapper(HttpType.Post, '/community/block', form);
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue