|
|
|
@ -16,7 +16,7 @@ var user = require('./../user.js'),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
app.get('/api/config', function(req, res, next) {
|
|
|
|
|
meta.config.getFields(['postDelay', 'minimumTitleLength', 'minimumPostLength'], function(err, metaConfig) {
|
|
|
|
|
meta.config.getFields(['postDelay', 'minimumTitleLength', 'minimumPostLength', 'imgurClientID'], function(err, metaConfig) {
|
|
|
|
|
if(err) return next();
|
|
|
|
|
var clientConfig = require('../../public/config.json');
|
|
|
|
|
|
|
|
|
@ -24,6 +24,9 @@ var user = require('./../user.js'),
|
|
|
|
|
clientConfig[attrname] = metaConfig[attrname];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
clientConfig['imgurClientIDSet'] = clientConfig['imgurClientID'] !== '';
|
|
|
|
|
delete clientConfig['imgurClientID'];
|
|
|
|
|
|
|
|
|
|
res.json(200, clientConfig);
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|