diff --git a/src/http.ts b/src/http.ts index cb2abde..2081321 100644 --- a/src/http.ts +++ b/src/http.ts @@ -154,7 +154,7 @@ import { ListTaglinesResponse } from "./types/ListTaglinesResponse"; import { ListCustomEmojis } from "./types/ListCustomEmojis"; import { ListCustomEmojisResponse } from "./types/ListCustomEmojisResponse"; import { GetRandomCommunity } from "./types/GetRandomCommunity"; -import { ApproveCommunityPendingFollows } from "./types/ApproveCommunityPendingFollows"; +import { ApproveCommunityPendingFollower } from "./types/ApproveCommunityPendingFollower"; import { GetCommunityPendingFollowsCount } from "./types/GetCommunityPendingFollowsCount"; import { GetCommunityPendingFollowsCountResponse } from "./types/GetCommunityPendingFollowsCountResponse"; import { ListCommunityPendingFollowsResponse } from "./types/ListCommunityPendingFollowsResponse"; @@ -469,8 +469,8 @@ export class LemmyHttp { >(HttpType.Get, "/community/pending_follows/list", form); } - approveCommunityPendingFollow(form: ApproveCommunityPendingFollows) { - return this.#wrapper( + approveCommunityPendingFollow(form: ApproveCommunityPendingFollower) { + return this.#wrapper( HttpType.Post, "/community/pending_follows/approve", form, diff --git a/src/index.ts b/src/index.ts index 4ee0b3d..0fc6647 100644 --- a/src/index.ts +++ b/src/index.ts @@ -18,7 +18,7 @@ export { AdminPurgePerson } from "./types/AdminPurgePerson"; export { AdminPurgePersonView } from "./types/AdminPurgePersonView"; export { AdminPurgePost } from "./types/AdminPurgePost"; export { AdminPurgePostView } from "./types/AdminPurgePostView"; -export { ApproveCommunityPendingFollows } from "./types/ApproveCommunityPendingFollows"; +export { ApproveCommunityPendingFollower } from "./types/ApproveCommunityPendingFollower"; export { ApproveRegistrationApplication } from "./types/ApproveRegistrationApplication"; export { AuthenticateWithOauth } from "./types/AuthenticateWithOauth"; export { BanFromCommunity } from "./types/BanFromCommunity"; diff --git a/src/types/ApproveCommunityPendingFollows.ts b/src/types/ApproveCommunityPendingFollower.ts similarity index 84% rename from src/types/ApproveCommunityPendingFollows.ts rename to src/types/ApproveCommunityPendingFollower.ts index 06c3ec3..57a526c 100644 --- a/src/types/ApproveCommunityPendingFollows.ts +++ b/src/types/ApproveCommunityPendingFollower.ts @@ -2,7 +2,7 @@ import type { CommunityId } from "./CommunityId"; import type { PersonId } from "./PersonId"; -export interface ApproveCommunityPendingFollows { +export interface ApproveCommunityPendingFollower { community_id: CommunityId; follower_id: PersonId; approve: boolean;