mirror of https://github.com/Chocobozzz/PeerTube
Fix 4106: default boolean plugin setting for frontend
parent
d35c81fa1c
commit
8bb6e70be3
|
@ -284,7 +284,7 @@ export class PluginModel extends Model {
|
|||
for (const r of registeredSettings) {
|
||||
if (r.private !== false) continue
|
||||
|
||||
result[r.name] = settings[r.name] || r.default || null
|
||||
result[r.name] = settings[r.name] ?? r.default ?? null
|
||||
}
|
||||
|
||||
return result
|
||||
|
|
Loading…
Reference in New Issue