|
|
|
@ -373,8 +373,6 @@ marked.setOptions({
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
Topics.markAsRead(tid, uid);
|
|
|
|
|
|
|
|
|
|
// User Details - move this out later
|
|
|
|
|
RDB.lpush('uid:' + uid + ':topics', tid);
|
|
|
|
|
|
|
|
|
@ -386,7 +384,12 @@ marked.setOptions({
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// let everyone know that there is an unread topic in this category
|
|
|
|
|
RDB.del('cid:' + category_id + ':read_by_uid');
|
|
|
|
|
RDB.del('cid:' + category_id + ':read_by_uid', function(err, data) {
|
|
|
|
|
console.log('deleted');
|
|
|
|
|
Topics.markAsRead(tid, uid);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RDB.zadd(schema.topics().recent, Date.now(), tid);
|
|
|
|
|
//RDB.zadd('topics:active', tid);
|
|
|
|
|