aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/app.js14
1 files changed, 2 insertions, 12 deletions
diff --git a/lib/app.js b/lib/app.js
index ef0c67d..4fac422 100644
--- a/lib/app.js
+++ b/lib/app.js
@@ -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 ? {