aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models
diff options
context:
space:
mode:
authorJohn Livingston <git@john-livingston.fr>2021-05-18 20:21:03 +0200
committerChocobozzz <chocobozzz@cpy.re>2021-05-25 11:34:22 +0200
commit8bb6e70be3c7199a0503aca302b4b32317520db3 (patch)
treeabb87bef728b1c0e70313ff71bdce3cd7b7c12f2 /server/models
parentd35c81fa1cb3946d887f223383a1cae58fe32b09 (diff)
downloadPeerTube-8bb6e70be3c7199a0503aca302b4b32317520db3.tar.gz
PeerTube-8bb6e70be3c7199a0503aca302b4b32317520db3.tar.zst
PeerTube-8bb6e70be3c7199a0503aca302b4b32317520db3.zip
Fix 4106: default boolean plugin setting for frontend
Diffstat (limited to 'server/models')
-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 82387af6a..80c8a6be5 100644
--- a/server/models/server/plugin.ts
+++ b/server/models/server/plugin.ts
@@ -284,7 +284,7 @@ export class PluginModel extends Model {
284 for (const r of registeredSettings) { 284 for (const r of registeredSettings) {
285 if (r.private !== false) continue 285 if (r.private !== false) continue
286 286
287 result[r.name] = settings[r.name] || r.default || null 287 result[r.name] = settings[r.name] ?? r.default ?? null
288 } 288 }
289 289
290 return result 290 return result