mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 16:35:47 +01:00
closes #3970
This commit is contained in:
@@ -246,35 +246,10 @@ function setupDefaultConfigs(next) {
|
||||
return next(err);
|
||||
}
|
||||
|
||||
if (install.values) {
|
||||
async.parallel([
|
||||
async.apply(setIfPaired, 'social:twitter:key', 'social:twitter:secret'),
|
||||
async.apply(setIfPaired, 'social:google:id', 'social:google:secret'),
|
||||
async.apply(setIfPaired, 'social:facebook:app_id', 'social:facebook:secret')
|
||||
], function(err) {
|
||||
if (err) {
|
||||
return next(err);
|
||||
}
|
||||
meta.configs.init(next);
|
||||
});
|
||||
} else {
|
||||
meta.configs.init(next);
|
||||
}
|
||||
meta.configs.init(next);
|
||||
});
|
||||
}
|
||||
|
||||
function setIfPaired(key1, key2, callback) {
|
||||
var meta = require('./meta');
|
||||
if (install.values[key1] && install.values[key2]) {
|
||||
async.parallel([
|
||||
async.apply(meta.configs.setOnEmpty, key1, install.values[key1]),
|
||||
async.apply(meta.configs.setOnEmpty, key2, install.values[key2])
|
||||
], callback);
|
||||
} else {
|
||||
callback();
|
||||
}
|
||||
}
|
||||
|
||||
function enableDefaultTheme(next) {
|
||||
var meta = require('./meta');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user