From 07d1f78debbe5e7e89a81d0b3c7300e950976ed2 Mon Sep 17 00:00:00 2001 From: cel Date: Wed, 8 Feb 2017 11:43:41 -0800 Subject: Allow sorting by timestamp --- lib/app.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/app.js') diff --git a/lib/app.js b/lib/app.js index cb9ad6d..faed5fc 100644 --- a/lib/app.js +++ b/lib/app.js @@ -111,3 +111,10 @@ function getAbout(sbot, src, id, cb) { cb(null, about) }) } + +App.prototype.createLogStream = function (opts) { + opts = opts || {} + return opts.sortByTimestamp + ? this.sbot.createFeedStream(opts) + : this.sbot.createLogStream(opts) +} -- cgit v1.2.3