mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-11-22 20:31:12 +00:00
This reverts commit 57de18c17e
.
This commit is contained in:
parent
fc210e6494
commit
a03b88ccab
3 changed files with 1 additions and 13 deletions
|
@ -28,7 +28,6 @@ import {
|
||||||
DeleteCommunity,
|
DeleteCommunity,
|
||||||
EditCommunity,
|
EditCommunity,
|
||||||
FollowCommunity,
|
FollowCommunity,
|
||||||
FollowCommunityResponse,
|
|
||||||
GetCommunity,
|
GetCommunity,
|
||||||
GetCommunityResponse,
|
GetCommunityResponse,
|
||||||
ListCommunities,
|
ListCommunities,
|
||||||
|
@ -263,9 +262,7 @@ export class LemmyHttp {
|
||||||
* Follow / subscribe to a community.
|
* Follow / subscribe to a community.
|
||||||
* `HTTP.POST /community/follow`
|
* `HTTP.POST /community/follow`
|
||||||
*/
|
*/
|
||||||
async followCommunity(
|
async followCommunity(form: FollowCommunity): Promise<CommunityResponse> {
|
||||||
form: FollowCommunity
|
|
||||||
): Promise<FollowCommunityResponse> {
|
|
||||||
return this.wrapper(HttpType.Post, "/community/follow", form);
|
return this.wrapper(HttpType.Post, "/community/follow", form);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import { ListingType, SortType } from "../others";
|
import { ListingType, SortType } from "../others";
|
||||||
import { Site } from "../source";
|
import { Site } from "../source";
|
||||||
import {
|
import {
|
||||||
CommunityFollowerView,
|
|
||||||
CommunityModeratorView,
|
CommunityModeratorView,
|
||||||
CommunityView,
|
CommunityView,
|
||||||
PersonViewSafe,
|
PersonViewSafe,
|
||||||
|
@ -40,13 +39,6 @@ export interface CommunityResponse {
|
||||||
community_view: CommunityView;
|
community_view: CommunityView;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface FollowCommunityResponse {
|
|
||||||
/**
|
|
||||||
* An unfollow returns null.
|
|
||||||
*/
|
|
||||||
community_follower_view?: CommunityFollowerView;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface ListCommunities {
|
export interface ListCommunities {
|
||||||
type_?: ListingType;
|
type_?: ListingType;
|
||||||
sort?: SortType;
|
sort?: SortType;
|
||||||
|
|
|
@ -190,7 +190,6 @@ export interface ModStickyPostView {
|
||||||
export interface CommunityFollowerView {
|
export interface CommunityFollowerView {
|
||||||
community: CommunitySafe;
|
community: CommunitySafe;
|
||||||
follower: PersonSafe;
|
follower: PersonSafe;
|
||||||
pending: boolean;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CommunityBlockView {
|
export interface CommunityBlockView {
|
||||||
|
|
Loading…
Reference in a new issue