mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 06:55:46 +01:00
#2200 actually fix dupe colors, show 10 topics
This commit is contained in:
@@ -125,9 +125,12 @@ SocketMeta.rooms.getAll = function(socket, data, callback) {
|
||||
topTenTopics = topTenTopics.concat(scores[mostActive.pop()]);
|
||||
}
|
||||
|
||||
topTenTopics = topTenTopics.slice(0,9);
|
||||
topTenTopics = topTenTopics.slice(0, 10);
|
||||
|
||||
topics.getTopicsFields(topTenTopics, ['title'], function(err, titles) {
|
||||
if (err) {
|
||||
return callback(err);
|
||||
}
|
||||
topTenTopics.forEach(function(tid, id) {
|
||||
socketData.topics[tid] = {
|
||||
value: rooms['/topic_' + tid].length,
|
||||
|
||||
Reference in New Issue
Block a user