aboutsummaryrefslogtreecommitdiff
path: root/lib/app.js
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-09-20 07:50:23 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-09-20 09:35:33 -1000
commita9feab3b1f5335b14fc0feba4da2b9fe40aa1224 (patch)
treebf6f10ae9a721c1f531b18b6aec9d84463485151 /lib/app.js
parent73022a68b920123bf3c150dbce5d5872f6f00669 (diff)
downloadpatchfoo-a9feab3b1f5335b14fc0feba4da2b9fe40aa1224.tar.gz
patchfoo-a9feab3b1f5335b14fc0feba4da2b9fe40aa1224.zip
Render npm package publishers
Diffstat (limited to 'lib/app.js')
-rw-r--r--lib/app.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/app.js b/lib/app.js
index 3255851..65d404a 100644
--- a/lib/app.js
+++ b/lib/app.js
@@ -549,9 +549,11 @@ App.prototype.streamPrivate = function (opts) {
App.prototype.blobMentions = function (opts) {
if (!this.sbot.links2) return pull.error(new Error(
'missing ssb-links plugin'))
+ var filter = {rel: ['mentions', opts.name]}
+ if (opts.author) filter.source = opts.author
return this.sbot.links2.read({
query: [
- {$filter: {rel: ['mentions', opts.name]}},
+ {$filter: filter},
{$filter: {dest: {$prefix: '&'}}},
{$map: {
name: ['rel', 1],