Add rejected state to follows

Prevent reprocessing already rejected follows
This commit is contained in:
Chocobozzz
2022-07-26 14:46:15 +02:00
parent 0f58b11f5c
commit 927fa4b11f
12 changed files with 266 additions and 54 deletions

View File

@@ -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' ])