Node.js based forum software built for the modern web
limiting recent chats to 20
Julian Lamd9cdd2f16580
diff --git a/src/controllers/accounts.js b/src/controllers/accounts.jsindex cb14d9acef..eec71b2bd2 100644--- a/src/controllers/accounts.js+++ b/src/controllers/accounts.js@@ -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,