potential fix for duplicate chat results, started recent replies block

This commit is contained in:
psychobunny
2013-05-24 09:00:00 -04:00
parent 786baa8fe0
commit 55cb790d3c
5 changed files with 24 additions and 1 deletions

View File

@@ -140,6 +140,8 @@ marked.setOptions({
RDB.del('cid:' + cid + ':read_by_uid');
});
RDB.zadd('topics:recent_posts:tid:' + tid, (new Date()).getTime(), pid);
// 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