diff --git a/public/src/forum/recent.js b/public/src/forum/recent.js index 7a7dbc26f1..4694152125 100644 --- a/public/src/forum/recent.js +++ b/public/src/forum/recent.js @@ -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')); diff --git a/src/posts.js b/src/posts.js index 2be8c7b83b..88d9330a56 100644 --- a/src/posts.js +++ b/src/posts.js @@ -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) { diff --git a/src/routes/user.js b/src/routes/user.js index 48dc5c26d0..b8d385e3fd 100644 --- a/src/routes/user.js +++ b/src/routes/user.js @@ -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);