aboutsummaryrefslogtreecommitdiff
path: root/lib/app.js
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-10-14 18:00:03 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-10-14 18:00:03 -1000
commit5b924278be5b8a04c95c2e112fbf5827b0244697 (patch)
treef0fcac666ae3cb88f65889420dc20bef7e2ae7a2 /lib/app.js
parent1b5f9989da716b8083b240036f0e56e9501e090d (diff)
downloadpatchfoo-5b924278be5b8a04c95c2e112fbf5827b0244697.tar.gz
patchfoo-5b924278be5b8a04c95c2e112fbf5827b0244697.zip
Add channel to advanced search
Diffstat (limited to 'lib/app.js')
-rw-r--r--lib/app.js7
1 files changed, 6 insertions, 1 deletions
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,