fix: #8059, properly mark topic unread when using mark unread for all

v1.18.x
Barış Soner Uşaklı 5 years ago
parent 4fea12c83e
commit a688aaae51

@ -67,6 +67,7 @@ module.exports = function (SocketTopics) {
await topics.markAsUnreadForAll(tid); await topics.markAsUnreadForAll(tid);
await topics.updateRecent(tid, now); await topics.updateRecent(tid, now);
await db.sortedSetAdd('cid:' + topicData.cid + ':tids:lastposttime', now, tid); await db.sortedSetAdd('cid:' + topicData.cid + ':tids:lastposttime', now, tid);
await topics.setTopicField(tid, 'lastposttime', now);
})); }));
topics.pushUnreadCount(socket.uid); topics.pushUnreadCount(socket.uid);
}; };

Loading…
Cancel
Save