aboutsummaryrefslogtreecommitdiff
path: root/lib/render.js
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-05-04 11:03:16 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-05-04 12:21:14 -1000
commit7570f001cc8ddeff88ebdab640e06a0b1b03974c (patch)
treec8394624a998ea5823dec79656ccc2e4f8c3c8c9 /lib/render.js
parent49d72723ed74ac04099a46e2aae2ef68432ba210 (diff)
downloadpatchfoo-7570f001cc8ddeff88ebdab640e06a0b1b03974c.tar.gz
patchfoo-7570f001cc8ddeff88ebdab640e06a0b1b03974c.zip
wip: about
Diffstat (limited to 'lib/render.js')
-rw-r--r--lib/render.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/render.js b/lib/render.js
index 316ad2f..bc4ce5b 100644
--- a/lib/render.js
+++ b/lib/render.js
@@ -183,7 +183,7 @@ Render.prototype.prepareLink = function (link, cb) {
if (link.name || !link.link) cb(null, link)
else this.app.getAbout(link.link, function (err, about) {
if (err) return cb(null, link)
- link.name = about.name || (link.link.substr(0, 8) + '…')
+ link.name = about.name || about.title || (link.link.substr(0, 8) + '…')
if (link.name && link.name[0] === link.link[0]) {
link.name = link.name.substr(1)
}