aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJohn Livingston <git@john-livingston.fr>2021-05-18 20:21:03 +0200
committerChocobozzz <me@florianbigard.com>2021-05-25 11:35:29 +0200
commitfa263eeff79b1d80789a87a5af45ebe4c303025d (patch)
tree34b1917fd4bd0604b2c66efde41b899e376a3456
parent78c5e31049900550ef1cb5a1c7d5b90c3aee3eee (diff)
downloadPeerTube-fa263eeff79b1d80789a87a5af45ebe4c303025d.tar.gz
PeerTube-fa263eeff79b1d80789a87a5af45ebe4c303025d.tar.zst
PeerTube-fa263eeff79b1d80789a87a5af45ebe4c303025d.zip
Fix 4106: default boolean plugin setting for frontend
-rw-r--r--server/models/server/plugin.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/models/server/plugin.ts b/server/models/server/plugin.ts
index 8bb9649da..a8de64dd4 100644
--- a/server/models/server/plugin.ts
+++ b/server/models/server/plugin.ts
@@ -283,7 +283,7 @@ export class PluginModel extends Model<Partial<AttributesOnly<PluginModel>>> {
283 for (const r of registeredSettings) { 283 for (const r of registeredSettings) {
284 if (r.private !== false) continue 284 if (r.private !== false) continue
285 285
286 result[r.name] = settings[r.name] || r.default || null 286 result[r.name] = settings[r.name] ?? r.default ?? null
287 } 287 }
288 288
289 return result 289 return result