diff options
Diffstat (limited to 'lib/app.js')
-rw-r--r-- | lib/app.js | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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], |