From 3d49987a1e25cdaafa4b9b7ae583f519a1d2a935 Mon Sep 17 00:00:00 2001 From: cel Date: Sat, 30 Mar 2019 12:15:40 -1000 Subject: npm: fix rendering unnamed feeds --- lib/render.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/render.js') 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), ' '), -- cgit v1.2.3