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
}
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
.post(path)
.set('Accept', 'application/json')
.set('Authorization', 'Bearer ' + accessToken)
- .send({ 'hosts': followingHosts })
+ .send({ hosts: followingHosts })
.expect(expectedStatus)
}