mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
🐛 Fixed private blogging getting enabled after import
refs #10582
- Importer should do similar conversion introduced in 04c60b4ce1
This commit is contained in:
parent
e2757d18f8
commit
942324b60e
1 changed files with 8 additions and 0 deletions
|
@ -68,6 +68,14 @@ class SettingsImporter extends BaseImporter {
|
|||
if (obj.key === 'slack') {
|
||||
obj.value = JSON.stringify([{url: ''}]);
|
||||
}
|
||||
|
||||
// CASE: export files might contain "0" or "1" for booleans
|
||||
// transform "0" to false
|
||||
// transform "false" to false
|
||||
// transform "null" to null
|
||||
if (obj.value === '0' || obj.value === '1') {
|
||||
obj.value = !!+obj.value;
|
||||
}
|
||||
});
|
||||
|
||||
return super.beforeImport();
|
||||
|
|
Loading…
Add table
Reference in a new issue