mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 04:25:55 +01:00
possible fix for issue #12
This commit is contained in:
@@ -185,12 +185,12 @@ marked.setOptions({
|
|||||||
|
|
||||||
Posts.get_cid_by_pid(pid, function(cid) {
|
Posts.get_cid_by_pid(pid, function(cid) {
|
||||||
RDB.del('cid:' + cid + ':read_by_uid');
|
RDB.del('cid:' + cid + ':read_by_uid');
|
||||||
|
|
||||||
RDB.zadd('categories:recent_posts:cid:' + cid, Date.now(), pid);
|
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', {
|
socket.emit('event:alert', {
|
||||||
title: 'Reply Successful',
|
title: 'Reply Successful',
|
||||||
|
|||||||
Reference in New Issue
Block a user