Commit 9948227317043fdb89ba84d455ae0c8a28413879
add sbot.pull.search
Matt McKegg committed on 2/19/2017, 12:13:03 PMParent: dea64669e4f83c0fcc780a9f3e042477cb141db7
Files changed
sbot.js | changed |
sbot.js | |||
---|---|---|---|
@@ -30,8 +30,9 @@ | |||
30 | 30 … | userFeed: true, | |
31 | 31 … | query: true, | |
32 | 32 … | feed: true, | |
33 | 33 … | links: true, | |
34 … | + search: true | ||
34 | 35 … | }, | |
35 | 36 … | obs: { | |
36 | 37 … | connectionStatus: true, | |
37 | 38 … | connectedPeers: true, | |
@@ -174,8 +175,11 @@ | |||
174 | 175 … | ) | |
175 | 176 … | }), | |
176 | 177 … | links: rec.source(function (query) { | |
177 | 178 … | return sbot.links(query) | |
179 … | + }), | ||
180 … | + search: rec.source(function (opts) { | ||
181 … | + return sbot.fulltext.search(opts) | ||
178 | 182 … | }) | |
179 | 183 … | }, | |
180 | 184 … | obs: { | |
181 | 185 … | connectionStatus: (listener) => connectionStatus(listener), |
Built with git-ssb-web