-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Labels
Description
When authors are comma separated, like this: Lifeyouristhis, Timeout
The website only shows the first name:
Relevant Code:
endless-sky.github.io/plugins.html
Lines 122 to 127 in d71dddd
| 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.