Commit a17cf2e975bdfd8c86fa1e1d91c50c7172ade5ff
use latest ssbc/ssb-ref#15 blob parsing
Matt McKegg committed on 4/20/2018, 1:35:38 AMParent: 8e90c8e8cb8f0b22e2d4f3c0ff91bb80b4880378
Files changed
message/html/markdown.js | changed |
package-lock.json | changed |
message/html/markdown.js | ||
---|---|---|
@@ -48,11 +48,11 @@ | ||
48 | 48 … | }, |
49 | 49 … | toUrl: (id) => { |
50 | 50 … | if (ref.isBlob(id)) { |
51 | 51 … | var blob = ref.parseBlob(id) |
52 | - var url = api.blob.sync.url(blob.id) | |
52 … | + var url = api.blob.sync.url(blob.link) | |
53 | 53 … | var query = {} |
54 | - if (blob.key) query['unbox'] = blob.key + '.boxs' | |
54 … | + if (blob.query && blob.query.unbox) query['unbox'] = blob.query.unbox | |
55 | 55 … | if (typeLookup[blob.id]) query['contentType'] = typeLookup[blob.id] |
56 | 56 … | return url + '?' + querystring.stringify(query) |
57 | 57 … | } |
58 | 58 … | if (mentions[id]) { |
package-lock.json | ||
---|---|---|
The diff is too large to show. Use a local git client to view these changes. Old file size: 106974 bytes New file size: 106974 bytes |
Built with git-ssb-web