mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-20 15:30:39 +01:00
limiting recent chats to 20
This commit is contained in:
@@ -501,6 +501,9 @@ accountsController.getChats = function(req, res, next) {
|
||||
});
|
||||
}
|
||||
|
||||
// Limit returned chats
|
||||
chats.length = 20;
|
||||
|
||||
res.render('chats', {
|
||||
meta: res.locals.chatData,
|
||||
chats: chats,
|
||||
|
||||
Reference in New Issue
Block a user