mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-17 14:00:29 +01:00
Compare commits
5 Commits
normalize-
...
v1.6.x
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
95f7b7b8e8 | ||
|
|
1dbd038aef | ||
|
|
4f7e2f636c | ||
|
|
eb0a7f9d84 | ||
|
|
02370b30d9 |
@@ -2,7 +2,7 @@
|
|||||||
"name": "nodebb",
|
"name": "nodebb",
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"description": "NodeBB Forum",
|
"description": "NodeBB Forum",
|
||||||
"version": "1.6.0",
|
"version": "1.6.1",
|
||||||
"homepage": "http://www.nodebb.org",
|
"homepage": "http://www.nodebb.org",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ var async = require('async');
|
|||||||
var _ = require('lodash');
|
var _ = require('lodash');
|
||||||
var S = require('string');
|
var S = require('string');
|
||||||
var winston = require('winston');
|
var winston = require('winston');
|
||||||
|
var validator = require('validator');
|
||||||
|
|
||||||
var db = require('./database');
|
var db = require('./database');
|
||||||
var user = require('./user');
|
var user = require('./user');
|
||||||
@@ -92,6 +93,7 @@ Flags.get = function (flagId, callback) {
|
|||||||
}, function (err, payload) {
|
}, function (err, payload) {
|
||||||
// Final object return construction
|
// Final object return construction
|
||||||
next(err, Object.assign(data.base, {
|
next(err, Object.assign(data.base, {
|
||||||
|
description: validator.escape(data.base.description),
|
||||||
datetimeISO: new Date(parseInt(data.base.datetime, 10)).toISOString(),
|
datetimeISO: new Date(parseInt(data.base.datetime, 10)).toISOString(),
|
||||||
target_readable: data.base.type.charAt(0).toUpperCase() + data.base.type.slice(1) + ' ' + data.base.targetId,
|
target_readable: data.base.type.charAt(0).toUpperCase() + data.base.type.slice(1) + ' ' + data.base.targetId,
|
||||||
target: payload.targetObj,
|
target: payload.targetObj,
|
||||||
@@ -200,6 +202,7 @@ Flags.list = function (filters, uid, callback) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
next(null, Object.assign(flagObj, {
|
next(null, Object.assign(flagObj, {
|
||||||
|
description: validator.escape(flagObj.description),
|
||||||
target_readable: flagObj.type.charAt(0).toUpperCase() + flagObj.type.slice(1) + ' ' + flagObj.targetId,
|
target_readable: flagObj.type.charAt(0).toUpperCase() + flagObj.type.slice(1) + ' ' + flagObj.targetId,
|
||||||
datetimeISO: new Date(parseInt(flagObj.datetime, 10)).toISOString(),
|
datetimeISO: new Date(parseInt(flagObj.datetime, 10)).toISOString(),
|
||||||
}));
|
}));
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
meta.configs.setMultiple({
|
meta.configs.setMultiple({
|
||||||
'brand:logo': path.join(nconf.get('upload_path'), 'system', path.basename(meta.config['brand:logo'])),
|
'brand:logo': path.join('/assets/uploads/system', path.basename(meta.config['brand:logo'])),
|
||||||
'brand:emailLogo': '/assets/uploads/system/site-logo-x50.png',
|
'brand:emailLogo': '/assets/uploads/system/site-logo-x50.png',
|
||||||
}, next);
|
}, next);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user