From 927fa4b11f692174d6296aa096d7a74bacdeea8b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 26 Jul 2022 14:46:15 +0200 Subject: Add rejected state to follows Prevent reprocessing already rejected follows --- shared/server-commands/server/follows-command.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'shared/server-commands/server') 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' ]) -- cgit v1.2.3