aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/users/subscriptions-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/users/subscriptions-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/users/subscriptions-command.ts')
-rw-r--r--shared/extra-utils/users/subscriptions-command.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/shared/extra-utils/users/subscriptions-command.ts b/shared/extra-utils/users/subscriptions-command.ts
index 94d2af67a..e998eb426 100644
--- a/shared/extra-utils/users/subscriptions-command.ts
+++ b/shared/extra-utils/users/subscriptions-command.ts
@@ -14,6 +14,7 @@ export class SubscriptionsCommand extends AbstractCommand {
14 14
15 path, 15 path,
16 fields: { uri: options.targetUri }, 16 fields: { uri: options.targetUri },
17 implicitToken: true,
17 defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204 18 defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204
18 }) 19 })
19 } 20 }
@@ -33,6 +34,7 @@ export class SubscriptionsCommand extends AbstractCommand {
33 sort, 34 sort,
34 search 35 search
35 }, 36 },
37 implicitToken: true,
36 defaultExpectedStatus: HttpStatusCode.OK_200 38 defaultExpectedStatus: HttpStatusCode.OK_200
37 }) 39 })
38 } 40 }
@@ -48,6 +50,7 @@ export class SubscriptionsCommand extends AbstractCommand {
48 50
49 path, 51 path,
50 query: { sort }, 52 query: { sort },
53 implicitToken: true,
51 defaultExpectedStatus: HttpStatusCode.OK_200 54 defaultExpectedStatus: HttpStatusCode.OK_200
52 }) 55 })
53 } 56 }
@@ -61,6 +64,7 @@ export class SubscriptionsCommand extends AbstractCommand {
61 ...options, 64 ...options,
62 65
63 path, 66 path,
67 implicitToken: true,
64 defaultExpectedStatus: HttpStatusCode.OK_200 68 defaultExpectedStatus: HttpStatusCode.OK_200
65 }) 69 })
66 } 70 }
@@ -74,6 +78,7 @@ export class SubscriptionsCommand extends AbstractCommand {
74 ...options, 78 ...options,
75 79
76 path, 80 path,
81 implicitToken: true,
77 defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204 82 defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204
78 }) 83 })
79 } 84 }
@@ -88,6 +93,7 @@ export class SubscriptionsCommand extends AbstractCommand {
88 93
89 path, 94 path,
90 query: { 'uris[]': options.uris }, 95 query: { 'uris[]': options.uris },
96 implicitToken: true,
91 defaultExpectedStatus: HttpStatusCode.OK_200 97 defaultExpectedStatus: HttpStatusCode.OK_200
92 }) 98 })
93 } 99 }