Commit 4afee98499ce44b3d44d51387f444b11f537b05a
Merge pull request #7 from pietgeursen/sbot-gives-messageByType
sbot gives messagesByType functionmix irving authored on 4/3/2017, 2:36:55 AM
GitHub committed on 4/3/2017, 2:36:55 AM
Parent: ab512c6473ad4ed1ba9143dc61c51545cf6ce781
Parent: 32b164d60557329be7e8cfcbcffc9b0644742e2b
Files changed
sbot.js | changed |
sbot.js | ||
---|---|---|
@@ -27,8 +27,9 @@ | ||
27 | 27 … | }, |
28 | 28 … | pull: { |
29 | 29 … | log: true, |
30 | 30 … | userFeed: true, |
31 … | + messagesByType: true, | |
31 | 32 … | query: true, |
32 | 33 … | feed: true, |
33 | 34 … | links: true, |
34 | 35 … | search: true, |
@@ -176,8 +177,11 @@ | ||
176 | 177 … | }), |
177 | 178 … | userFeed: rec.source(opts => { |
178 | 179 … | return sbot.createUserStream(opts) |
179 | 180 … | }), |
181 … | + messagesByType: rec.source(opts => { | |
182 … | + return sbot.messagesByType(opts) | |
183 … | + }), | |
180 | 184 … | feed: rec.source(function (opts) { |
181 | 185 … | return pull( |
182 | 186 … | sbot.createFeedStream(opts), |
183 | 187 … | pull.through(runHooks) |
Built with git-ssb-web