From e6452cbd4d5283160deed1ac2d532d49b11d65e0 Mon Sep 17 00:00:00 2001 From: Baris Usakli Date: Fri, 29 Nov 2013 13:14:38 -0500 Subject: [PATCH] removed unusued uploadedImages property --- src/posts.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/posts.js b/src/posts.js index 535e17f01b..9b36e79da7 100644 --- a/src/posts.js +++ b/src/posts.js @@ -370,18 +370,7 @@ var RDB = require('./redis'), winston.err('invalid time value'); } - if (postData.uploadedImages) { - try { - postData.uploadedImages = JSON.parse(postData.uploadedImages); - } catch(err) { - postData.uploadedImages = []; - winston.err(err); - } - } else { - postData.uploadedImages = []; - } - - postTools.parse(postData.content, function(err, content) { + postTools.parse(postData.content, function(err, content) { postData.content = content; _callback(null, postData); });