Commit eb7933358238526bccf4c320ca689b9269c61f95
whoops, fix handling contentType in URLs
Matt McKegg committed on 4/20/2018, 1:48:06 AMParent: a17cf2e975bdfd8c86fa1e1d91c50c7172ade5ff
Files changed
message/html/markdown.js | changed |
message/html/markdown.js | ||
---|---|---|
@@ -33,9 +33,9 @@ | ||
33 | 33 … | else mentions['@' + link.name] = link.link |
34 | 34 … | } |
35 | 35 … | }) |
36 | 36 … | } |
37 | - | |
37 … | + | |
38 | 38 … | return h('Markdown', { |
39 | 39 … | hooks: [ |
40 | 40 … | LoadingBlobHook(api.blob.obs.has) |
41 | 41 … | ], |
@@ -51,9 +51,9 @@ | ||
51 | 51 … | var blob = ref.parseBlob(id) |
52 | 52 … | var url = api.blob.sync.url(blob.link) |
53 | 53 … | var query = {} |
54 | 54 … | if (blob.query && blob.query.unbox) query['unbox'] = blob.query.unbox |
55 | - if (typeLookup[blob.id]) query['contentType'] = typeLookup[blob.id] | |
55 … | + if (typeLookup[blob.link]) query['contentType'] = typeLookup[blob.link] | |
56 | 56 … | return url + '?' + querystring.stringify(query) |
57 | 57 … | } |
58 | 58 … | if (mentions[id]) { |
59 | 59 … | return mentions[id] |
Built with git-ssb-web