summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-11-14 12:27:42 +0100
committerTor Andersson <tor@ccxvii.net>2021-11-14 12:27:42 +0100
commite207e21fd2a1a4dbfce607ad99aa2975c5f924ee (patch)
treecd0bd2917daa9994d84316f70f3866551311f973
parent70a58f6fbff84cb13a5f536b03a136c19d18eb60 (diff)
downloadserver-e207e21fd2a1a4dbfce607ad99aa2975c5f924ee.tar.gz
Reduce default chat history.
-rw-r--r--server.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.js b/server.js
index 06cb7fe..5265030 100644
--- a/server.js
+++ b/server.js
@@ -544,7 +544,7 @@ app.get('/users', may_be_logged_in, function (req, res) {
app.get('/chat', must_be_logged_in, function (req, res) {
LOG(req, "GET /chat");
- let chat = SQL_SELECT_USER_CHAT_N.all(req.user.user_id, 1200);
+ let chat = SQL_SELECT_USER_CHAT_N.all(req.user.user_id, 12*20);
res.render('chat.ejs', { user: req.user, chat: chat, page_size: 12 });
});