mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
marathon bugfixing with @barisusakli re: #1788
This commit is contained in:
@@ -502,7 +502,9 @@ accountsController.getChats = function(req, res, next) {
|
||||
}
|
||||
|
||||
// Limit returned chats
|
||||
chats.length = 20;
|
||||
if (chats.length > 20) {
|
||||
chats.length = 20;
|
||||
}
|
||||
|
||||
res.render('chats', {
|
||||
meta: res.locals.chatData,
|
||||
|
||||
Reference in New Issue
Block a user