mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 07:55:46 +01:00
fix: #8538, go to first unread instead of last read
This commit is contained in:
@@ -119,7 +119,9 @@ Topics.getTopicsByTids = async function (tids, options) {
|
||||
topic.isOwner = topic.uid === parseInt(uid, 10);
|
||||
topic.ignored = isIgnored[i];
|
||||
topic.unread = !hasRead[i] && !isIgnored[i];
|
||||
topic.bookmark = sortOldToNew ? Math.max(1, topic.postcount + 2 - bookmarks[i]) : bookmarks[i];
|
||||
topic.bookmark = sortOldToNew ?
|
||||
Math.max(1, topic.postcount + 2 - bookmarks[i]) :
|
||||
Math.min(topic.postcount, bookmarks[i] + 1);
|
||||
topic.unreplied = !topic.teaser;
|
||||
|
||||
topic.icons = [];
|
||||
|
||||
Reference in New Issue
Block a user