mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: wrong var for ignored
This commit is contained in:
@@ -138,7 +138,7 @@ Topics.getTopicsByTids = async function (tids, options) {
|
|||||||
topic.isOwner = topic.uid === parseInt(uid, 10);
|
topic.isOwner = topic.uid === parseInt(uid, 10);
|
||||||
topic.ignored = followData[i].ignoring;
|
topic.ignored = followData[i].ignoring;
|
||||||
topic.followed = followData[i].following;
|
topic.followed = followData[i].following;
|
||||||
topic.unread = parseInt(uid, 10) <= 0 || (!hasRead[i] && !topic.ignored[i]);
|
topic.unread = parseInt(uid, 10) <= 0 || (!hasRead[i] && !topic.ignored);
|
||||||
topic.bookmark = bookmarks[i] && (sortNewToOld ?
|
topic.bookmark = bookmarks[i] && (sortNewToOld ?
|
||||||
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