mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-16 21:40:23 +01:00
Compare commits
5 Commits
socket-not
...
v1.6.x
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
95f7b7b8e8 | ||
|
|
1dbd038aef | ||
|
|
4f7e2f636c | ||
|
|
eb0a7f9d84 | ||
|
|
02370b30d9 |
@@ -2,7 +2,7 @@
|
||||
"name": "nodebb",
|
||||
"license": "GPL-3.0",
|
||||
"description": "NodeBB Forum",
|
||||
"version": "1.6.0",
|
||||
"version": "1.6.1",
|
||||
"homepage": "http://www.nodebb.org",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -136,4 +136,4 @@
|
||||
"url": "https://github.com/barisusakli"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -4,6 +4,7 @@ var async = require('async');
|
||||
var _ = require('lodash');
|
||||
var S = require('string');
|
||||
var winston = require('winston');
|
||||
var validator = require('validator');
|
||||
|
||||
var db = require('./database');
|
||||
var user = require('./user');
|
||||
@@ -92,6 +93,7 @@ Flags.get = function (flagId, callback) {
|
||||
}, function (err, payload) {
|
||||
// Final object return construction
|
||||
next(err, Object.assign(data.base, {
|
||||
description: validator.escape(data.base.description),
|
||||
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: payload.targetObj,
|
||||
@@ -200,6 +202,7 @@ Flags.list = function (filters, uid, callback) {
|
||||
}
|
||||
|
||||
next(null, Object.assign(flagObj, {
|
||||
description: validator.escape(flagObj.description),
|
||||
target_readable: flagObj.type.charAt(0).toUpperCase() + flagObj.type.slice(1) + ' ' + flagObj.targetId,
|
||||
datetimeISO: new Date(parseInt(flagObj.datetime, 10)).toISOString(),
|
||||
}));
|
||||
|
||||
@@ -45,7 +45,7 @@ module.exports = {
|
||||
}
|
||||
|
||||
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',
|
||||
}, next);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user