mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 16:05:49 +01:00
feat: set unread false for guests
This commit is contained in:
@@ -118,7 +118,7 @@ Topics.getTopicsByTids = async function (tids, options) {
|
|||||||
|
|
||||||
topic.isOwner = topic.uid === parseInt(uid, 10);
|
topic.isOwner = topic.uid === parseInt(uid, 10);
|
||||||
topic.ignored = isIgnored[i];
|
topic.ignored = isIgnored[i];
|
||||||
topic.unread = !hasRead[i] && !isIgnored[i];
|
topic.unread = parseInt(uid, 10) > 0 && !hasRead[i] && !isIgnored[i];
|
||||||
topic.bookmark = sortOldToNew ?
|
topic.bookmark = sortOldToNew ?
|
||||||
Math.max(1, topic.postcount + 2 - bookmarks[i]) :
|
Math.max(1, topic.postcount + 2 - bookmarks[i]) :
|
||||||
Math.min(topic.postcount, bookmarks[i] + 1);
|
Math.min(topic.postcount, bookmarks[i] + 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user