mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
string
This commit is contained in:
@@ -77,7 +77,7 @@ module.exports = function (Topics) {
|
|||||||
tidToCount[post.tid] += 1;
|
tidToCount[post.tid] += 1;
|
||||||
});
|
});
|
||||||
|
|
||||||
return _.uniq(postObjs.map(post => post.tid)).sort((t1, t2) => tidToCount[t2] - tidToCount[t1]);
|
return _.uniq(postObjs.map(post => String(post.tid))).sort((t1, t2) => tidToCount[t2] - tidToCount[t1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function getWatchedTopics(params) {
|
async function getWatchedTopics(params) {
|
||||||
|
|||||||
Reference in New Issue
Block a user