git ssb

7+

dinoworm 🐛 / patchcore



Commit eb7933358238526bccf4c320ca689b9269c61f95

whoops, fix handling contentType in URLs

Matt McKegg committed on 4/20/2018, 1:48:06 AM
Parent: a17cf2e975bdfd8c86fa1e1d91c50c7172ade5ff

Files changed

message/html/markdown.jschanged
message/html/markdown.jsView
@@ -33,9 +33,9 @@
3333 else mentions['@' + link.name] = link.link
3434 }
3535 })
3636 }
37-
37 +
3838 return h('Markdown', {
3939 hooks: [
4040 LoadingBlobHook(api.blob.obs.has)
4141 ],
@@ -51,9 +51,9 @@
5151 var blob = ref.parseBlob(id)
5252 var url = api.blob.sync.url(blob.link)
5353 var query = {}
5454 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]
5656 return url + '?' + querystring.stringify(query)
5757 }
5858 if (mentions[id]) {
5959 return mentions[id]

Built with git-ssb-web