fixes #433 - looks like someone removed the code that floated pinned

topics to the top...
v1.18.x
Julian Lam 11 years ago
parent 40a8150519
commit 55e990f71d

@ -87,6 +87,11 @@ var RDB = require('./redis.js'),
function getTopics(next) {
topics.getTopicsByTids(tids, current_user, function(topicsData) {
// Float pinned topics to the top of the list
topicsData = topicsData.sort(function(a, b) {
return parseInt(b.pinned, 10) - parseInt(a.pinned, 10);
});
next(null, topicsData);
}, category_id);
}

Loading…
Cancel
Save