X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=shared%2Fextra-utils%2Fserver%2Ffollows.ts;h=006d591995aed439baf9b9ca787383ae81f102a6;hb=a30a136c9896c656cab98d2c92cde32c534dc098;hp=3f7729c20aab00773adb38ae1720c8269ddc2148;hpb=97ecddae104f4013d261f0e9645e8b319ff0f1a6;p=github%2FChocobozzz%2FPeerTube.git diff --git a/shared/extra-utils/server/follows.ts b/shared/extra-utils/server/follows.ts index 3f7729c20..006d59199 100644 --- a/shared/extra-utils/server/follows.ts +++ b/shared/extra-utils/server/follows.ts @@ -5,12 +5,12 @@ import { makePostBodyRequest } from '../requests/requests' import { ActivityPubActorType, FollowState } from '@shared/models' function getFollowersListPaginationAndSort (options: { - url: string, - start: number, - count: number, - sort: string, - search?: string, - actorType?: ActivityPubActorType, + url: string + start: number + count: number + sort: string + search?: string + actorType?: ActivityPubActorType state?: FollowState }) { const { url, start, count, sort, search, state, actorType } = options @@ -56,12 +56,12 @@ function rejectFollower (url: string, token: string, follower: string, statusCod } function getFollowingListPaginationAndSort (options: { - url: string, - start: number, - count: number, - sort: string, - search?: string, - actorType?: ActivityPubActorType, + url: string + start: number + count: number + sort: string + search?: string + actorType?: ActivityPubActorType state?: FollowState }) { const { url, start, count, sort, search, state, actorType } = options @@ -92,7 +92,7 @@ function follow (follower: string, following: string[], accessToken: string, exp .post(path) .set('Accept', 'application/json') .set('Authorization', 'Bearer ' + accessToken) - .send({ 'hosts': followingHosts }) + .send({ hosts: followingHosts }) .expect(expectedStatus) }