diff options
Diffstat (limited to 'lib/serve.js')
-rw-r--r-- | lib/serve.js | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/serve.js b/lib/serve.js index 3e20a0f..32ea3e0 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -390,18 +390,13 @@ Serve.prototype.private = function (ext) { var q = this.query var opts = { reverse: !q.forwards, - sortByTimestamp: q.sort === 'claimed', lt: Number(q.lt) || Date.now(), gt: Number(q.gt) || -Infinity, + limit: Number(q.limit) || 12, } - var limit = Number(q.limit) || 12 pull( - this.app.createLogStream(opts), - pull.filter(u.isMsgEncrypted), - this.app.unboxMessages(), - pull.filter(u.isMsgReadable), - pull.take(limit), + this.app.streamPrivate(opts), this.renderThreadPaginated(opts, null, q), this.wrapMessages(), this.wrapPrivate(opts), |