From 23dfca9de17bc1f76e70c038fe72abb52713720f Mon Sep 17 00:00:00 2001 From: Dessalines Date: Thu, 26 May 2022 10:44:48 -0400 Subject: [PATCH] Revert "Add follow pending. (#52)" This reverts commit 57de18c17e640f39d5466ff1ad80aa43c52e0bc5. --- src/http.ts | 5 +---- src/interfaces/api/community.ts | 8 -------- src/interfaces/views.ts | 1 - 3 files changed, 1 insertion(+), 13 deletions(-) diff --git a/src/http.ts b/src/http.ts index ddb6c90..82a337c 100644 --- a/src/http.ts +++ b/src/http.ts @@ -28,7 +28,6 @@ import { DeleteCommunity, EditCommunity, FollowCommunity, - FollowCommunityResponse, GetCommunity, GetCommunityResponse, ListCommunities, @@ -263,9 +262,7 @@ export class LemmyHttp { * Follow / subscribe to a community. * `HTTP.POST /community/follow` */ - async followCommunity( - form: FollowCommunity - ): Promise { + async followCommunity(form: FollowCommunity): Promise { return this.wrapper(HttpType.Post, "/community/follow", form); } diff --git a/src/interfaces/api/community.ts b/src/interfaces/api/community.ts index e8947d2..a9c0ff3 100644 --- a/src/interfaces/api/community.ts +++ b/src/interfaces/api/community.ts @@ -1,7 +1,6 @@ import { ListingType, SortType } from "../others"; import { Site } from "../source"; import { - CommunityFollowerView, CommunityModeratorView, CommunityView, PersonViewSafe, @@ -40,13 +39,6 @@ export interface CommunityResponse { community_view: CommunityView; } -export interface FollowCommunityResponse { - /** - * An unfollow returns null. - */ - community_follower_view?: CommunityFollowerView; -} - export interface ListCommunities { type_?: ListingType; sort?: SortType; diff --git a/src/interfaces/views.ts b/src/interfaces/views.ts index 008820f..574be90 100644 --- a/src/interfaces/views.ts +++ b/src/interfaces/views.ts @@ -190,7 +190,6 @@ export interface ModStickyPostView { export interface CommunityFollowerView { community: CommunitySafe; follower: PersonSafe; - pending: boolean; } export interface CommunityBlockView {