Commit e9bb4e285f6ed74c209f836552ac3cc01c7822c6
Merge pull request #50 from ssbc/secret-blobs
support secret blobsMatt McKegg authored on 4/11/2018, 3:34:03 AM
GitHub committed on 4/11/2018, 3:34:03 AM
Parent: 77e61a99aecc53624a9d106a5ea374c2b933963b
Parent: 644b8222bca3871d183ca534426fa06d5228e26d
Files changed
message/html/markdown.js | changed |
message/html/markdown.js | ||
---|---|---|
@@ -41,9 +41,9 @@ | ||
41 | 41 … | : api.emoji.sync.url(emoji) |
42 | 42 … | return renderEmoji(emoji, url) |
43 | 43 … | }, |
44 | 44 … | toUrl: (id) => { |
45 | - if (ref.isBlob(id)) return api.blob.sync.url(id) | |
45 … | + if (id[0] == '&') return api.blob.sync.url(id) | |
46 | 46 … | if (mentions[id]) { |
47 | 47 … | return mentions[id] |
48 | 48 … | } else if (ref.isLink(id) || id.startsWith('#') || id.startsWith('?')) { |
49 | 49 … | return id |
Built with git-ssb-web