Commit 7a4602b4d8ba03a08fa8dc8623644a1673938ce4
work around problem with current ssb-query, where it might choose a slow index instead of a fast one
Dominic Tarr committed on 10/17/2019, 11:16:23 AMParent: 35b6122037e20c7e9f0d9b54e257f4ade57b49b7
Files changed
public.js | changed |
public.js | ||
---|---|---|
@@ -35,9 +35,12 @@ | ||
35 | 35 … | //where something isn't included in the query but |
36 | 36 … | //is in the since. |
37 | 37 … | var since = self.since |
38 | 38 … | var _opts = u.createQuery(opts, {limit: 20, reverse: opts.reverse}) |
39 | - | |
39 … | + var _type = opts.type | |
40 … | + if(opts.channel) { | |
41 … | + delete _opts.query[0].$filter.value.content.type | |
42 … | + } | |
40 | 43 … | pull( |
41 | 44 … | sbot.query.read(_opts), |
42 | 45 … | pull.filter(function (v) { |
43 | 46 … | return v.value.content.type === 'post' |
Built with git-ssb-web