Bugfix changeboardsettings language

indiachan-spamvector
Thomas Lynch 1 year ago
parent 224b141920
commit a360f09929
  1. 2
      models/forms/changeboardsettings.js

@ -27,6 +27,7 @@ const { Boards, Posts } = require(__dirname+'/../../db/')
'codetheme': ['board', 'threads', 'catalog', 'other'],
'announcement.raw': ['board', 'threads', 'catalog', 'other'],
'customCss': ['board', 'threads', 'catalog', 'other'],
'language': ['board', 'threads', 'catalog', 'other'],
'allowedFileTypes.other': ['board', 'threads', 'catalog'],
'allowedFileTypes.image': ['board', 'threads', 'catalog'],
'enableTegaki': ['board', 'threads', 'catalog'],
@ -59,6 +60,7 @@ module.exports = async (req, res) => {
'name': trimSetting(req.body.name, oldSettings.name),
'description': trimSetting(req.body.description, oldSettings.description),
'defaultName': trimSetting(req.body.default_name, oldSettings.defaultName),
'language': trimSetting(req.body.language, oldSettings.language),
'theme': req.body.theme || oldSettings.theme,
'codeTheme': req.body.code_theme || oldSettings.codeTheme,
'sfw': booleanSetting(req.body.sfw),

Loading…
Cancel
Save