diff options
Diffstat (limited to 'shared')
-rw-r--r-- | shared/models/actors/follow.model.ts | 2 | ||||
-rw-r--r-- | shared/server-commands/server/follows-command.ts | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/shared/models/actors/follow.model.ts b/shared/models/actors/follow.model.ts index 7de638cba..244d6d97e 100644 --- a/shared/models/actors/follow.model.ts +++ b/shared/models/actors/follow.model.ts | |||
@@ -1,6 +1,6 @@ | |||
1 | import { Actor } from './actor.model' | 1 | import { Actor } from './actor.model' |
2 | 2 | ||
3 | export type FollowState = 'pending' | 'accepted' | 3 | export type FollowState = 'pending' | 'accepted' | 'rejected' |
4 | 4 | ||
5 | export interface ActorFollow { | 5 | export interface ActorFollow { |
6 | id: number | 6 | id: number |
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' | |||
6 | export class FollowsCommand extends AbstractCommand { | 6 | export class FollowsCommand extends AbstractCommand { |
7 | 7 | ||
8 | getFollowers (options: OverrideCommandOptions & { | 8 | getFollowers (options: OverrideCommandOptions & { |
9 | start: number | 9 | start?: number |
10 | count: number | 10 | count?: number |
11 | sort: string | 11 | sort?: string |
12 | search?: string | 12 | search?: string |
13 | actorType?: ActivityPubActorType | 13 | actorType?: ActivityPubActorType |
14 | state?: FollowState | 14 | state?: FollowState |
15 | }) { | 15 | } = {}) { |
16 | const path = '/api/v1/server/followers' | 16 | const path = '/api/v1/server/followers' |
17 | 17 | ||
18 | const query = pick(options, [ 'start', 'count', 'sort', 'search', 'state', 'actorType' ]) | 18 | const query = pick(options, [ 'start', 'count', 'sort', 'search', 'state', 'actorType' ]) |