aboutsummaryrefslogtreecommitdiff
path: root/lib/render-msg.js
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-05-15 13:06:39 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-05-15 13:06:39 -1000
commit58b40d18c7d49ef071ece70af5e6d9e1d12301e2 (patch)
tree9522535c9e1db5785461608762faf3998a732ce1 /lib/render-msg.js
parent7570f001cc8ddeff88ebdab640e06a0b1b03974c (diff)
parentf826bdf13d9bbdfd31a38bfdff382106b8edfd52 (diff)
downloadpatchfoo-58b40d18c7d49ef071ece70af5e6d9e1d12301e2.tar.gz
patchfoo-58b40d18c7d49ef071ece70af5e6d9e1d12301e2.zip
Merge branch 'master' into about
Diffstat (limited to 'lib/render-msg.js')
-rw-r--r--lib/render-msg.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/render-msg.js b/lib/render-msg.js
index 931b7a6..55ea863 100644
--- a/lib/render-msg.js
+++ b/lib/render-msg.js
@@ -344,7 +344,7 @@ RenderMsg.prototype.link = function (link, cb) {
var ref = u.linkDest(link)
if (!ref) return cb(null, '')
self.getName(ref, function (err, name) {
- if (err) return cb(err)
+ if (err) name = truncate(ref, 10)
cb(null, h('a', {href: self.toUrl(ref)}, name))
})
}