diff options
author | cel <cel@lOUVT+Phkvai9a/cCS/RKo+S9hnPAQdVixms/7ldpPA=.ed25519> | 2020-03-23 15:13:58 -0400 |
---|---|---|
committer | cel <cel@lOUVT+Phkvai9a/cCS/RKo+S9hnPAQdVixms/7ldpPA=.ed25519> | 2020-03-28 13:55:24 -0400 |
commit | e3e4ed19ef47bbbd8a0236011b5d4bf131eed048 (patch) | |
tree | e469ec3262387a7ed6c2f4d6b324ebbe1d014cef /lib/app.js | |
parent | 661eff54f83248fe168f066648b88112109e1e29 (diff) | |
download | patchfoo-e3e4ed19ef47bbbd8a0236011b5d4bf131eed048.tar.gz patchfoo-e3e4ed19ef47bbbd8a0236011b5d4bf131eed048.zip |
Fix sorting by claimed timestamp
Diffstat (limited to 'lib/app.js')
-rw-r--r-- | lib/app.js | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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})), |