diff options
Diffstat (limited to 'shared/extra-utils/server/follows-command.ts')
-rw-r--r-- | shared/extra-utils/server/follows-command.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/shared/extra-utils/server/follows-command.ts b/shared/extra-utils/server/follows-command.ts index 4e1e56d7a..4e9ed9494 100644 --- a/shared/extra-utils/server/follows-command.ts +++ b/shared/extra-utils/server/follows-command.ts | |||
@@ -2,7 +2,7 @@ import { pick } from 'lodash' | |||
2 | import { ActivityPubActorType, ActorFollow, FollowState, ResultList } from '@shared/models' | 2 | import { ActivityPubActorType, ActorFollow, FollowState, ResultList } from '@shared/models' |
3 | import { HttpStatusCode } from '../../core-utils/miscs/http-error-codes' | 3 | import { HttpStatusCode } from '../../core-utils/miscs/http-error-codes' |
4 | import { AbstractCommand, OverrideCommandOptions } from '../shared' | 4 | import { AbstractCommand, OverrideCommandOptions } from '../shared' |
5 | import { ServerInfo } from './servers' | 5 | import { PeerTubeServer } from './server' |
6 | 6 | ||
7 | export class FollowsCommand extends AbstractCommand { | 7 | export class FollowsCommand extends AbstractCommand { |
8 | 8 | ||
@@ -70,7 +70,7 @@ export class FollowsCommand extends AbstractCommand { | |||
70 | } | 70 | } |
71 | 71 | ||
72 | async unfollow (options: OverrideCommandOptions & { | 72 | async unfollow (options: OverrideCommandOptions & { |
73 | target: ServerInfo | 73 | target: PeerTubeServer |
74 | }) { | 74 | }) { |
75 | const path = '/api/v1/server/following/' + options.target.host | 75 | const path = '/api/v1/server/following/' + options.target.host |
76 | 76 | ||
@@ -112,7 +112,7 @@ export class FollowsCommand extends AbstractCommand { | |||
112 | } | 112 | } |
113 | 113 | ||
114 | removeFollower (options: OverrideCommandOptions & { | 114 | removeFollower (options: OverrideCommandOptions & { |
115 | follower: ServerInfo | 115 | follower: PeerTubeServer |
116 | }) { | 116 | }) { |
117 | const path = '/api/v1/server/followers/peertube@' + options.follower.host | 117 | const path = '/api/v1/server/followers/peertube@' + options.follower.host |
118 | 118 | ||