Skip to content

Plugin list only shows the first author #72

@MCOfficer

Description

@MCOfficer

When authors are comma separated, like this: Lifeyouristhis, Timeout

The website only shows the first name:

Image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions