From 28562531dcff8901fe1698cccf8eb98eb74d912c Mon Sep 17 00:00:00 2001 From: cel Date: Wed, 8 Apr 2020 18:36:36 -0400 Subject: Allow querying mentions of any id --- lib/app.js | 2 +- lib/serve.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/app.js b/lib/app.js index b62a1d2..ef5cc6a 100644 --- a/lib/app.js +++ b/lib/app.js @@ -817,7 +817,7 @@ App.prototype.streamMentions = function (opts) { 'Viewing mentions requires the ssb-backlinks plugin')) if (this.sbot.backlinks) return this.filter(this.sbot.backlinks, opts, { - dest: this.sbot.id, + dest: opts.id || this.sbot.id, }) } diff --git a/lib/serve.js b/lib/serve.js index 37d93eb..815c452 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -678,6 +678,7 @@ Serve.prototype.mentions = function (ext) { lt: Number(q.lt) || Date.now(), gt: Number(q.gt) || -Infinity, filter: q.filter, + id: q.id } return pull( -- cgit v1.2.3