git ssb

7+

dinoworm 🐛 / patchcore



Commit 3b0b994c23e7c80183b45838f85fdf2eb63d2f18

whoops, fix non-link style mention linking

Matt McKegg committed on 10/14/2017, 2:00:11 PM
Parent: 1f8ca230abddc0671b31f56cf357b55a08539414

Files changed

message/html/markdown.jschanged
message/html/markdown.jsView
@@ -42,10 +42,12 @@
4242 return renderEmoji(emoji, url)
4343 },
4444 toUrl: (id) => {
4545 if (ref.isBlob(id)) return api.blob.sync.url(id)
46- if (ref.isLink(id) || id.startsWith('#') || id.startsWith('?')) {
47- return mentions[id] || id
46 + if (mentions[id]) {
47 + return mentions[id]
48 + } else if (ref.isLink(id) || id.startsWith('#') || id.startsWith('?')) {
49 + return id
4850 }
4951 return false
5052 },
5153 imageLink: (id) => id

Built with git-ssb-web