Skip to content

Node.js based forum software built for the modern web

if params.count is passed in, min should be 0

psychobunny643abb692672
diff --git a/src/messaging.js b/src/messaging.js
index fbb61199ca..e42b6758c9 100644
--- a/src/messaging.js
+++ b/src/messaging.js
@@ -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;