From a688aaae516354f5f96576c47283de1f0e5fc476 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Sat, 23 Nov 2019 08:52:18 -0500 Subject: [PATCH] fix: #8059, properly mark topic unread when using mark unread for all --- src/socket.io/topics/unread.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/socket.io/topics/unread.js b/src/socket.io/topics/unread.js index e997e1608d..0d8021a398 100644 --- a/src/socket.io/topics/unread.js +++ b/src/socket.io/topics/unread.js @@ -67,6 +67,7 @@ module.exports = function (SocketTopics) { await topics.markAsUnreadForAll(tid); await topics.updateRecent(tid, now); await db.sortedSetAdd('cid:' + topicData.cid + ':tids:lastposttime', now, tid); + await topics.setTopicField(tid, 'lastposttime', now); })); topics.pushUnreadCount(socket.uid); };