mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-18 03:31:03 +01:00
add index to suggest topics
This commit is contained in:
@@ -102,7 +102,7 @@
|
||||
"nodebb-plugin-ntfy": "1.7.3",
|
||||
"nodebb-plugin-spam-be-gone": "2.2.0",
|
||||
"nodebb-rewards-essentials": "0.2.3",
|
||||
"nodebb-theme-harmony": "1.1.83",
|
||||
"nodebb-theme-harmony": "1.1.84",
|
||||
"nodebb-theme-lavender": "7.1.4",
|
||||
"nodebb-theme-peace": "2.1.22",
|
||||
"nodebb-theme-persona": "13.2.38",
|
||||
|
||||
@@ -32,6 +32,7 @@ module.exports = function (Topics) {
|
||||
topicData = await user.blocks.filter(uid, topicData);
|
||||
topicData = topicData.slice(start, stop !== -1 ? stop + 1 : undefined)
|
||||
.sort((t1, t2) => t2.timestamp - t1.timestamp);
|
||||
Topics.calculateTopicIndices(topicData, start);
|
||||
return topicData;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user