diff options
-rw-r--r-- | lib/app.js | 14 |
1 files changed, 2 insertions, 12 deletions
@@ -761,22 +761,12 @@ App.prototype.streamEmojis = function () { } App.prototype.filter = function (plugin, opts, filter) { - // work around flumeview-query not picking the best index. - // %b+QdyLFQ21UGYwvV3AiD8FEr7mKlB8w9xx3h8WzSUb0=.sha256 var limit = Number(opts.limit) - var index - if (plugin === this.sbot.backlinks) { - var c = filter && filter.value && filter.value.content - var filteringByType = c && c.type - if (opts.sortByTimestamp) index = 'DTA' - else if (filteringByType) index = 'DTS' - } var filterOpts = { - $gt: opts.gt, - $lt: opts.lt, + $gt: opts.gt || 1438957925282, + $lt: opts.lt || Date.now(), } return plugin.read({ - index: index, reverse: opts.reverse, limit: limit || undefined, query: [{$filter: u.mergeOpts(filter, opts.sortByTimestamp ? { |