]> Untitled Git - lemmy.git/blobdiff - api_tests/src/shared.ts
Revert "Add pending, and change use specific API response for FollowCommunity…" ...
[lemmy.git] / api_tests / src / shared.ts
index d4b75c7e43b3b78437553fd2e601ebb7cf99a972..d5be61ac3f66e4164fd05cd780a5a01838170378 100644 (file)
@@ -11,7 +11,6 @@ import {
   PostResponse,
   SearchResponse,
   FollowCommunity,
-  FollowCommunityResponse,
   CommunityResponse,
   GetPostResponse,
   Register,
@@ -299,7 +298,7 @@ export async function banPersonFromSite(
   api: API,
   person_id: number,
   ban: boolean,
-  remove_data: boolean
+  remove_data: boolean,
 ): Promise<BanPersonResponse> {
   // Make sure lemmy-beta/c/main is cached on lemmy_alpha
   let form: BanPerson = {
@@ -332,7 +331,7 @@ export async function followCommunity(
   api: API,
   follow: boolean,
   community_id: number
-): Promise<FollowCommunityResponse> {
+): Promise<CommunityResponse> {
   let form: FollowCommunity = {
     community_id,
     follow,
@@ -559,7 +558,7 @@ export async function saveUserSettings(
 }
 
 export async function deleteUser(
-  api: API
+  api: API,
 ): Promise<DeleteAccountResponse> {
   let form: DeleteAccount = {
     auth: api.auth,
@@ -603,7 +602,7 @@ export async function unfollowRemotes(
   return siteRes;
 }
 
-export async function followBeta(api: API): Promise<FollowCommunityResponse> {
+export async function followBeta(api: API): Promise<CommunityResponse> {
   let betaCommunity = (await resolveBetaCommunity(api)).community;
   if (betaCommunity) {
     let follow = await followCommunity(api, true, betaCommunity.community.id);
@@ -614,7 +613,7 @@ export async function followBeta(api: API): Promise<FollowCommunityResponse> {
 export async function reportPost(
   api: API,
   post_id: number,
-  reason: string
+  reason: string,
 ): Promise<PostReportResponse> {
   let form: CreatePostReport = {
     post_id,
@@ -634,7 +633,7 @@ export async function listPostReports(api: API): Promise<ListPostReportsResponse
 export async function reportComment(
   api: API,
   comment_id: number,
-  reason: string
+  reason: string,
 ): Promise<CommentReportResponse> {
   let form: CreateCommentReport = {
     comment_id,