X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=shared%2Fserver-commands%2Fserver%2Ffollows-command.ts;h=496e11df178eac5fdcec44fd76a5b7d23fb5d483;hb=1cddb979ac5ca92aa7defe75583755f4043d1338;hp=01ef6f179f4186ab0afb5bd3fd4960e78ba4e682;hpb=bf54587a3e2ad9c2c186828f2a5682b91ee2cc00;p=github%2FChocobozzz%2FPeerTube.git diff --git a/shared/server-commands/server/follows-command.ts b/shared/server-commands/server/follows-command.ts index 01ef6f179..496e11df1 100644 --- a/shared/server-commands/server/follows-command.ts +++ b/shared/server-commands/server/follows-command.ts @@ -6,13 +6,13 @@ import { PeerTubeServer } from './server' export class FollowsCommand extends AbstractCommand { getFollowers (options: OverrideCommandOptions & { - start: number - count: number - sort: string + start?: number + count?: number + sort?: string search?: string actorType?: ActivityPubActorType state?: FollowState - }) { + } = {}) { const path = '/api/v1/server/followers' const query = pick(options, [ 'start', 'count', 'sort', 'search', 'state', 'actorType' ])