aboutsummaryrefslogtreecommitdiff
path: root/lib/app.js
diff options
context:
space:
mode:
authorcel <cel@lOUVT+Phkvai9a/cCS/RKo+S9hnPAQdVixms/7ldpPA=.ed25519>2020-03-23 15:13:58 -0400
committercel <cel@lOUVT+Phkvai9a/cCS/RKo+S9hnPAQdVixms/7ldpPA=.ed25519>2020-03-28 13:55:24 -0400
commite3e4ed19ef47bbbd8a0236011b5d4bf131eed048 (patch)
treee469ec3262387a7ed6c2f4d6b324ebbe1d014cef /lib/app.js
parent661eff54f83248fe168f066648b88112109e1e29 (diff)
downloadpatchfoo-e3e4ed19ef47bbbd8a0236011b5d4bf131eed048.tar.gz
patchfoo-e3e4ed19ef47bbbd8a0236011b5d4bf131eed048.zip
Fix sorting by claimed timestamp
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})),