aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcel <cel@lOUVT+Phkvai9a/cCS/RKo+S9hnPAQdVixms/7ldpPA=.ed25519>2020-04-08 18:36:36 -0400
committercel <cel@lOUVT+Phkvai9a/cCS/RKo+S9hnPAQdVixms/7ldpPA=.ed25519>2020-04-08 18:38:50 -0400
commit28562531dcff8901fe1698cccf8eb98eb74d912c (patch)
treeaf4ae36d56fcea71f7a8d86e58067578f3966293
parent94607565ec744efb11bdb97a69a6089a4f241985 (diff)
downloadpatchfoo-28562531dcff8901fe1698cccf8eb98eb74d912c.tar.gz
patchfoo-28562531dcff8901fe1698cccf8eb98eb74d912c.zip
Allow querying mentions of any id
-rw-r--r--lib/app.js2
-rw-r--r--lib/serve.js1
2 files changed, 2 insertions, 1 deletions
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(