Revert "Add follow pending. (#52)" (#63)

This reverts commit 57de18c17e.
This commit is contained in:
Dessalines 2022-05-26 10:47:40 -04:00 committed by GitHub
parent fc210e6494
commit a03b88ccab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 13 deletions

View file

@ -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<FollowCommunityResponse> {
async followCommunity(form: FollowCommunity): Promise<CommunityResponse> {
return this.wrapper(HttpType.Post, "/community/follow", form);
}

View file

@ -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;

View file

@ -190,7 +190,6 @@ export interface ModStickyPostView {
export interface CommunityFollowerView {
community: CommunitySafe;
follower: PersonSafe;
pending: boolean;
}
export interface CommunityBlockView {