From 96c43b4607542aa32d55a4b5a828496798492e93 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 28 Aug 2013 12:29:15 -0400 Subject: [PATCH] fixed #221 - issue where replies would not automatically refresh a post after editing --- src/postTools.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/postTools.js b/src/postTools.js index 29287610a7..edef132e4c 100644 --- a/src/postTools.js +++ b/src/postTools.js @@ -56,7 +56,6 @@ var RDB = require('./redis.js'), } PostTools.edit = function(uid, pid, title, content) { - var success = function() { posts.setPostField(pid, 'content', content); posts.setPostField(pid, 'edited', Date.now()); @@ -74,9 +73,10 @@ var RDB = require('./redis.js'), topics.setTopicField(tid, 'title', title); topicSearch.remove(tid, function() { topicSearch.index(title, tid); - next(null, tid); }); } + + next(null, tid); }); }); },