This commit is contained in:
Felix Ableitner 2024-10-14 14:44:15 +02:00
parent 2ee103e26b
commit f83d522cbd
3 changed files with 5 additions and 5 deletions

View file

@ -154,7 +154,7 @@ import { ListTaglinesResponse } from "./types/ListTaglinesResponse";
import { ListCustomEmojis } from "./types/ListCustomEmojis"; import { ListCustomEmojis } from "./types/ListCustomEmojis";
import { ListCustomEmojisResponse } from "./types/ListCustomEmojisResponse"; import { ListCustomEmojisResponse } from "./types/ListCustomEmojisResponse";
import { GetRandomCommunity } from "./types/GetRandomCommunity"; import { GetRandomCommunity } from "./types/GetRandomCommunity";
import { ApproveCommunityPendingFollows } from "./types/ApproveCommunityPendingFollows"; import { ApproveCommunityPendingFollower } from "./types/ApproveCommunityPendingFollower";
import { GetCommunityPendingFollowsCount } from "./types/GetCommunityPendingFollowsCount"; import { GetCommunityPendingFollowsCount } from "./types/GetCommunityPendingFollowsCount";
import { GetCommunityPendingFollowsCountResponse } from "./types/GetCommunityPendingFollowsCountResponse"; import { GetCommunityPendingFollowsCountResponse } from "./types/GetCommunityPendingFollowsCountResponse";
import { ListCommunityPendingFollowsResponse } from "./types/ListCommunityPendingFollowsResponse"; import { ListCommunityPendingFollowsResponse } from "./types/ListCommunityPendingFollowsResponse";
@ -469,8 +469,8 @@ export class LemmyHttp {
>(HttpType.Get, "/community/pending_follows/list", form); >(HttpType.Get, "/community/pending_follows/list", form);
} }
approveCommunityPendingFollow(form: ApproveCommunityPendingFollows) { approveCommunityPendingFollow(form: ApproveCommunityPendingFollower) {
return this.#wrapper<ApproveCommunityPendingFollows, SuccessResponse>( return this.#wrapper<ApproveCommunityPendingFollower, SuccessResponse>(
HttpType.Post, HttpType.Post,
"/community/pending_follows/approve", "/community/pending_follows/approve",
form, form,

View file

@ -18,7 +18,7 @@ export { AdminPurgePerson } from "./types/AdminPurgePerson";
export { AdminPurgePersonView } from "./types/AdminPurgePersonView"; export { AdminPurgePersonView } from "./types/AdminPurgePersonView";
export { AdminPurgePost } from "./types/AdminPurgePost"; export { AdminPurgePost } from "./types/AdminPurgePost";
export { AdminPurgePostView } from "./types/AdminPurgePostView"; export { AdminPurgePostView } from "./types/AdminPurgePostView";
export { ApproveCommunityPendingFollows } from "./types/ApproveCommunityPendingFollows"; export { ApproveCommunityPendingFollower } from "./types/ApproveCommunityPendingFollower";
export { ApproveRegistrationApplication } from "./types/ApproveRegistrationApplication"; export { ApproveRegistrationApplication } from "./types/ApproveRegistrationApplication";
export { AuthenticateWithOauth } from "./types/AuthenticateWithOauth"; export { AuthenticateWithOauth } from "./types/AuthenticateWithOauth";
export { BanFromCommunity } from "./types/BanFromCommunity"; export { BanFromCommunity } from "./types/BanFromCommunity";

View file

@ -2,7 +2,7 @@
import type { CommunityId } from "./CommunityId"; import type { CommunityId } from "./CommunityId";
import type { PersonId } from "./PersonId"; import type { PersonId } from "./PersonId";
export interface ApproveCommunityPendingFollows { export interface ApproveCommunityPendingFollower {
community_id: CommunityId; community_id: CommunityId;
follower_id: PersonId; follower_id: PersonId;
approve: boolean; approve: boolean;