From acdca15e6a54516ced1299bf25a55588ad457131 Mon Sep 17 00:00:00 2001
From: Baris Soner Usakli <barisusakli@gmail.com>
Date: Fri, 21 Jun 2013 12:23:49 -0400
Subject: [PATCH] possible fix for issue #12

---
 src/posts.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/posts.js b/src/posts.js
index 30807e830f..99ec325a54 100644
--- a/src/posts.js
+++ b/src/posts.js
@@ -185,12 +185,12 @@ marked.setOptions({
 
 					Posts.get_cid_by_pid(pid, function(cid) {
 						RDB.del('cid:' + cid + ':read_by_uid');
+						
 						RDB.zadd('categories:recent_posts:cid:' + cid, Date.now(), pid);
+
+						topics.markAsRead(tid, uid);
 					});
 
-					// Re-add the poster, so he/she does not get an "unread" flag on this topic
-					topics.markAsRead(tid, uid);
-					// this will duplicate once we enter the thread, which is where we should be going
 
 					socket.emit('event:alert', {
 						title: 'Reply Successful',