From 5b924278be5b8a04c95c2e112fbf5827b0244697 Mon Sep 17 00:00:00 2001 From: cel Date: Sat, 14 Oct 2017 18:00:03 -1000 Subject: Add channel to advanced search --- lib/app.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lib/app.js') diff --git a/lib/app.js b/lib/app.js index d999598..53e6291 100644 --- a/lib/app.js +++ b/lib/app.js @@ -119,7 +119,12 @@ App.prototype.search = function (opts) { App.prototype.advancedSearch = function (opts) { return pull( - opts.dest ? + opts.channel ? + this.sbot.backlinks.read({ + dest: '#' + opts.channel, + reverse: true, + }) + : opts.dest ? this.sbot.links({ values: true, dest: opts.dest, -- cgit v1.2.3