git ssb

2+

mixmix / ticktack



Commit 2b1e0cfa2f8ffcddd87d0ea71797a535a1352003

update to work with current patchcore api

Dominic Tarr committed on 12/5/2017, 9:53:35 PM
Parent: f1d5a7c472bb8e838a7fd395f59be8d473f8a872

Files changed

blogs/blog.jschanged
blogs/blog.jsView
@@ -13,9 +13,9 @@
1313 }
1414
1515 exports.needs = {
1616 message: { html: { markdown: 'first' } },
17- sbot: { pull: { getBlob: 'first' } }
17+ sbot: { pull: { stream: 'first' } }
1818 }
1919
2020
2121 exports.create = function (api) {
@@ -38,9 +38,11 @@
3838 content: function (data) {
3939 if('blog' == typeof data.value.content.type) return
4040 var div = h('Markdown')
4141 pull(
42- api.sbot.pull.getBlob(data.value.content.blog),
42+ api.sbot.pull.stream(function (sbot) {
43+ return sbot.blobs.get(data.value.content.blog)
44+ }),
4345 pull.collect(function (err, ary) {
4446 if(err) return
4547 var md = api.message.html.markdown({text:Buffer.concat(ary).toString()})
4648 div.innerHTML = md.innerHTML
@@ -54,4 +56,7 @@
5456 }
5557
5658
5759
60+
61+
62+

Built with git-ssb-web