diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-11-14 12:27:42 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2021-11-14 12:27:42 +0100 |
commit | e207e21fd2a1a4dbfce607ad99aa2975c5f924ee (patch) | |
tree | cd0bd2917daa9994d84316f70f3866551311f973 | |
parent | 70a58f6fbff84cb13a5f536b03a136c19d18eb60 (diff) | |
download | server-e207e21fd2a1a4dbfce607ad99aa2975c5f924ee.tar.gz |
Reduce default chat history.
-rw-r--r-- | server.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 }); }); |