git ssb

16+

cel / patchfoo



Commit 9ebb886a032f3a3767c24dce9a343311ea8c4481

Handle bad refs better

cel committed on 5/12/2017, 6:20:18 AM
Parent: 1e1d32ef170391da41c2c064fc9a557a1ba667d1

Files changed

lib/render-msg.jschanged
lib/render-msg.jsView
@@ -341,9 +341,9 @@
341341 var self = this
342342 var ref = u.linkDest(link)
343343 if (!ref) return cb(null, '')
344344 self.getName(ref, function (err, name) {
345- if (err) return cb(err)
345 + if (err) name = truncate(ref, 10)
346346 cb(null, h('a', {href: self.toUrl(ref)}, name))
347347 })
348348 }
349349

Built with git-ssb-web