diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-02-08 11:43:41 -0800 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-02-08 11:43:41 -0800 |
commit | 07d1f78debbe5e7e89a81d0b3c7300e950976ed2 (patch) | |
tree | 7a0019f679906daeda66237e1263e6c6b5009c40 /lib/app.js | |
parent | ac3d249d64c586e8e000b45b7ca96773b2de61af (diff) | |
download | patchfoo-07d1f78debbe5e7e89a81d0b3c7300e950976ed2.tar.gz patchfoo-07d1f78debbe5e7e89a81d0b3c7300e950976ed2.zip |
Allow sorting by timestamp
Diffstat (limited to 'lib/app.js')
-rw-r--r-- | lib/app.js | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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) +} |