mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-06 10:06:31 +02: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