diff options
-rw-r--r-- | lib/serve.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/serve.js b/lib/serve.js index 64c96df..7e0ee26 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -527,8 +527,10 @@ Serve.prototype.new = function (ext) { var q = self.query var latest = (/latest=([^;]*)/.exec(self.req.headers.cookie) || [])[1] var limit = Number(q.limit || self.conf.newLimit || 500) + var now = Date.now() var opts = { - gt: Number(q.gt) || Number(latest) || Date.now(), + gt: Number(q.gt) || Number(latest) || now, + lte: now, limit: limit } |