When authors are comma separated, like this: Lifeyouristhis, Timeout
The website only shows the first name:
Relevant Code:
|
function createByline({ author, authors }) { |
|
if (author) return author; |
|
if (Array.isArray(authors)) return authors[0]; |
|
if (typeof authors === 'string') return authors.split(',')[0]; |
|
return '(unknown author)'; |
|
} |
Apparently I wrote this, but I really don't know why. I guess at some point I was expecting authors to also be an array? As it stands, all calls go through L125, where any author beyond the first are cut off.
Ref endless-sky/endless-sky-plugins#1887
When authors are comma separated, like this:
Lifeyouristhis, TimeoutThe website only shows the first name:
Relevant Code:
endless-sky.github.io/plugins.html
Lines 122 to 127 in d71dddd
Apparently I wrote this, but I really don't know why. I guess at some point I was expecting
authorsto also be an array? As it stands, all calls go through L125, where any author beyond the first are cut off.Ref endless-sky/endless-sky-plugins#1887