diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-08 10:55:16 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:17 +0200 |
commit | a1637fa1e25b60a88f7cfe50aac8953f50d55761 (patch) | |
tree | 4d0cc82eef618619a7bcb747812cc7b21e0d8776 /shared/extra-utils/users/blocklist-command.ts | |
parent | 04aed76711909507e74905bde3a7fa024d3585c9 (diff) | |
download | PeerTube-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/users/blocklist-command.ts')
-rw-r--r-- | shared/extra-utils/users/blocklist-command.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/shared/extra-utils/users/blocklist-command.ts b/shared/extra-utils/users/blocklist-command.ts index 96afdc3fd..089b5a579 100644 --- a/shared/extra-utils/users/blocklist-command.ts +++ b/shared/extra-utils/users/blocklist-command.ts | |||
@@ -56,6 +56,7 @@ export class BlocklistCommand extends AbstractCommand { | |||
56 | accountName: account, | 56 | accountName: account, |
57 | host: server | 57 | host: server |
58 | }, | 58 | }, |
59 | implicitToken: true, | ||
59 | defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204 | 60 | defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204 |
60 | }) | 61 | }) |
61 | } | 62 | } |
@@ -78,6 +79,7 @@ export class BlocklistCommand extends AbstractCommand { | |||
78 | accountName: account, | 79 | accountName: account, |
79 | host: server | 80 | host: server |
80 | }, | 81 | }, |
82 | implicitToken: true, | ||
81 | defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204 | 83 | defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204 |
82 | }) | 84 | }) |
83 | } | 85 | } |
@@ -98,6 +100,7 @@ export class BlocklistCommand extends AbstractCommand { | |||
98 | ...options, | 100 | ...options, |
99 | 101 | ||
100 | path, | 102 | path, |
103 | implicitToken: true, | ||
101 | defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204 | 104 | defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204 |
102 | }) | 105 | }) |
103 | } | 106 | } |
@@ -116,6 +119,7 @@ export class BlocklistCommand extends AbstractCommand { | |||
116 | ...options, | 119 | ...options, |
117 | 120 | ||
118 | path, | 121 | path, |
122 | implicitToken: true, | ||
119 | defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204 | 123 | defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204 |
120 | }) | 124 | }) |
121 | } | 125 | } |
@@ -128,6 +132,7 @@ export class BlocklistCommand extends AbstractCommand { | |||
128 | 132 | ||
129 | path, | 133 | path, |
130 | query: { start, count, sort }, | 134 | query: { start, count, sort }, |
135 | implicitToken: true, | ||
131 | defaultExpectedStatus: HttpStatusCode.OK_200 | 136 | defaultExpectedStatus: HttpStatusCode.OK_200 |
132 | }) | 137 | }) |
133 | } | 138 | } |