diff options
Diffstat (limited to 'lib/render.js')
-rw-r--r-- | lib/render.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/render.js b/lib/render.js index 32be2ff..69666a5 100644 --- a/lib/render.js +++ b/lib/render.js @@ -551,7 +551,7 @@ Render.prototype.npmPackageMention = function (link, opts, cb) { opts.withAuthor ? h('td', h('a', { href: self.toUrl(pathWithAuthor), title: 'publisher' - }, about.name), ' ') : '', + }, about.name || u.truncate(link.author, 8)), ' ') : '', h('td', h('a', { href: self.toUrl(base + name), title: 'package name' @@ -609,7 +609,7 @@ Render.prototype.npmPrebuildMention = function (link, opts, cb) { cb(null, h('tr', [ opts.withAuthor ? h('td', h('a', { href: self.toUrl(link.author) - }, about.name), ' ') : '', + }, about.name || u.truncate(link.author, 8)), ' ') : '', h('td', h('a', { href: self.toUrl(base + name) }, name), ' '), |