diff options
author | cel <cel@lOUVT+Phkvai9a/cCS/RKo+S9hnPAQdVixms/7ldpPA=.ed25519> | 2020-04-08 18:36:36 -0400 |
---|---|---|
committer | cel <cel@lOUVT+Phkvai9a/cCS/RKo+S9hnPAQdVixms/7ldpPA=.ed25519> | 2020-04-08 18:38:50 -0400 |
commit | 28562531dcff8901fe1698cccf8eb98eb74d912c (patch) | |
tree | af4ae36d56fcea71f7a8d86e58067578f3966293 | |
parent | 94607565ec744efb11bdb97a69a6089a4f241985 (diff) | |
download | patchfoo-28562531dcff8901fe1698cccf8eb98eb74d912c.tar.gz patchfoo-28562531dcff8901fe1698cccf8eb98eb74d912c.zip |
Allow querying mentions of any id
-rw-r--r-- | lib/app.js | 2 | ||||
-rw-r--r-- | lib/serve.js | 1 |
2 files changed, 2 insertions, 1 deletions
@@ -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( |