mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-06 12:31:33 +01:00
Merge branch 'master' of github.com:designcreateplay/NodeBB
This commit is contained in:
@@ -90,7 +90,7 @@ define(function() {
|
||||
|
||||
$('#category-no-topics').remove();
|
||||
|
||||
html = $(html);
|
||||
html = $(translatedHTML);
|
||||
container.append(html);
|
||||
$('span.timeago').timeago();
|
||||
app.makeNumbersHumanReadable(html.find('.human-readable-number'));
|
||||
|
||||
@@ -388,7 +388,7 @@ var db = require('./database'),
|
||||
|
||||
if(meta.config.imgurClientID) {
|
||||
if(!image || !image.data) {
|
||||
return callback('invalid image', null);
|
||||
return callback(new Error('invalid image'), null);
|
||||
}
|
||||
|
||||
require('./imgur').upload(meta.config.imgurClientID, image.data, 'base64', function(err, data) {
|
||||
|
||||
@@ -214,7 +214,7 @@ var fs = require('fs'),
|
||||
|
||||
os.on('error', function (err) {
|
||||
fs.unlinkSync(tempPath);
|
||||
winston.err(err);
|
||||
winston.error(err.message);
|
||||
});
|
||||
|
||||
is.pipe(os);
|
||||
|
||||
Reference in New Issue
Block a user