aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2019-03-30 12:15:40 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2019-03-30 12:15:40 -1000
commit3d49987a1e25cdaafa4b9b7ae583f519a1d2a935 (patch)
tree59bd2697accc1552332d89b69fe1221794d8646e /lib
parent4c4dbb9040844bd4eb9385fc142af25f5decf67e (diff)
downloadpatchfoo-3d49987a1e25cdaafa4b9b7ae583f519a1d2a935.tar.gz
patchfoo-3d49987a1e25cdaafa4b9b7ae583f519a1d2a935.zip
npm: fix rendering unnamed feeds
Diffstat (limited to 'lib')
-rw-r--r--lib/render.js4
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), ' '),