diff options
author | Chocobozzz <me@florianbigard.com> | 2021-08-18 11:12:21 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-08-18 11:12:21 +0200 |
commit | 63436fc5eadc3f58a047fe87be9c4afa84a7a9ca (patch) | |
tree | 01b1c2ae210347a478adea92923b56495d56da31 /shared/extra-utils/requests | |
parent | 1d1da33661c6f0b42a2e5bf7fd4a0e6b9d9265cd (diff) | |
download | PeerTube-63436fc5eadc3f58a047fe87be9c4afa84a7a9ca.tar.gz PeerTube-63436fc5eadc3f58a047fe87be9c4afa84a7a9ca.tar.zst PeerTube-63436fc5eadc3f58a047fe87be9c4afa84a7a9ca.zip |
Fix uploading empty tags
Diffstat (limited to 'shared/extra-utils/requests')
-rw-r--r-- | shared/extra-utils/requests/requests.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shared/extra-utils/requests/requests.ts b/shared/extra-utils/requests/requests.ts index e3ecd1af2..5a2b09dcc 100644 --- a/shared/extra-utils/requests/requests.ts +++ b/shared/extra-utils/requests/requests.ts | |||
@@ -185,7 +185,7 @@ function buildFields (req: request.Test, fields: { [ fieldName: string ]: any }, | |||
185 | if (fields[key] === undefined) continue | 185 | if (fields[key] === undefined) continue |
186 | 186 | ||
187 | if (Array.isArray(fields[key]) && fields[key].length === 0) { | 187 | if (Array.isArray(fields[key]) && fields[key].length === 0) { |
188 | req.field(key, null) | 188 | req.field(key, []) |
189 | continue | 189 | continue |
190 | } | 190 | } |
191 | 191 | ||