aboutsummaryrefslogtreecommitdiff
path: root/lib/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/app.js')
-rw-r--r--lib/app.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/app.js b/lib/app.js
index f45e6f9..ef0c67d 100644
--- a/lib/app.js
+++ b/lib/app.js
@@ -828,8 +828,10 @@ App.prototype.streamMentions = function (opts) {
}
App.prototype.streamPrivate = function (opts) {
- if (this.sbot.private && this.sbot.private.read)
+ if (this.sbot.private && this.sbot.private.read) {
+ if (opts.sortByTimestamp) return pull.error('ssb-private does not support sort by claimed timestamp')
return this.filter(this.sbot.private, opts, {})
+ }
return pull(
this.createLogStream(u.mergeOpts(opts, {private: true})),