aboutsummaryrefslogtreecommitdiff
path: root/lib/app.js
diff options
context:
space:
mode:
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],