aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/server/follows-command.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-07-08 10:55:16 +0200
committerChocobozzz <me@florianbigard.com>2021-07-20 15:27:17 +0200
commita1637fa1e25b60a88f7cfe50aac8953f50d55761 (patch)
tree4d0cc82eef618619a7bcb747812cc7b21e0d8776 /shared/extra-utils/server/follows-command.ts
parent04aed76711909507e74905bde3a7fa024d3585c9 (diff)
downloadPeerTube-a1637fa1e25b60a88f7cfe50aac8953f50d55761.tar.gz
PeerTube-a1637fa1e25b60a88f7cfe50aac8953f50d55761.tar.zst
PeerTube-a1637fa1e25b60a88f7cfe50aac8953f50d55761.zip
Specify if we want to fallback to the server token
Diffstat (limited to 'shared/extra-utils/server/follows-command.ts')
-rw-r--r--shared/extra-utils/server/follows-command.ts11
1 files changed, 7 insertions, 4 deletions
diff --git a/shared/extra-utils/server/follows-command.ts b/shared/extra-utils/server/follows-command.ts
index aba7bce82..4e1e56d7a 100644
--- a/shared/extra-utils/server/follows-command.ts
+++ b/shared/extra-utils/server/follows-command.ts
@@ -22,10 +22,9 @@ export class FollowsCommand extends AbstractCommand {
22 return this.getRequestBody<ResultList<ActorFollow>>({ 22 return this.getRequestBody<ResultList<ActorFollow>>({
23 ...options, 23 ...options,
24 24
25 token: null,
26
27 path, 25 path,
28 query, 26 query,
27 implicitToken: false,
29 defaultExpectedStatus: HttpStatusCode.OK_200 28 defaultExpectedStatus: HttpStatusCode.OK_200
30 }) 29 })
31 } 30 }
@@ -46,10 +45,9 @@ export class FollowsCommand extends AbstractCommand {
46 return this.getRequestBody<ResultList<ActorFollow>>({ 45 return this.getRequestBody<ResultList<ActorFollow>>({
47 ...options, 46 ...options,
48 47
49 token: null,
50
51 path, 48 path,
52 query, 49 query,
50 implicitToken: false,
53 defaultExpectedStatus: HttpStatusCode.OK_200 51 defaultExpectedStatus: HttpStatusCode.OK_200
54 }) 52 })
55 } 53 }
@@ -66,6 +64,7 @@ export class FollowsCommand extends AbstractCommand {
66 64
67 path, 65 path,
68 fields: { hosts }, 66 fields: { hosts },
67 implicitToken: true,
69 defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204 68 defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204
70 }) 69 })
71 } 70 }
@@ -79,6 +78,7 @@ export class FollowsCommand extends AbstractCommand {
79 ...options, 78 ...options,
80 79
81 path, 80 path,
81 implicitToken: true,
82 defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204 82 defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204
83 }) 83 })
84 } 84 }
@@ -92,6 +92,7 @@ export class FollowsCommand extends AbstractCommand {
92 ...options, 92 ...options,
93 93
94 path, 94 path,
95 implicitToken: true,
95 defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204 96 defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204
96 }) 97 })
97 } 98 }
@@ -105,6 +106,7 @@ export class FollowsCommand extends AbstractCommand {
105 ...options, 106 ...options,
106 107
107 path, 108 path,
109 implicitToken: true,
108 defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204 110 defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204
109 }) 111 })
110 } 112 }
@@ -118,6 +120,7 @@ export class FollowsCommand extends AbstractCommand {
118 ...options, 120 ...options,
119 121
120 path, 122 path,
123 implicitToken: true,
121 defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204 124 defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204
122 }) 125 })
123 } 126 }