mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
if params.count is passed in, min should be 0
This commit is contained in:
@@ -104,7 +104,7 @@ var db = require('./database'),
|
||||
count = params.count || parseInt(meta.config.chatMessageInboxSize, 10) || 250;
|
||||
|
||||
var uids = sortUids(fromuid, touid),
|
||||
min = Date.now() - (terms[since] || terms.day);
|
||||
min = params.count ? 0 : Date.now() - (terms[since] || terms.day);
|
||||
|
||||
if (since === 'recent') {
|
||||
count = 49;
|
||||
|
||||
Reference in New Issue
Block a user