aboutsummaryrefslogtreecommitdiff
path: root/lib/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/app.js')
-rw-r--r--lib/app.js7
1 files changed, 7 insertions, 0 deletions
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)
+}