mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-24 10:59:47 +01:00
refactor(participants): use DisplayName in JoinCredited
This commit is contained in:
parent
57785255bf
commit
7d601029c9
1 changed files with 1 additions and 4 deletions
|
|
@ -100,10 +100,7 @@ func (p ParticipantList) Join(sep string) string {
|
|||
// Falls back to Name when CreditedAs is empty.
|
||||
func (p ParticipantList) JoinCredited(sep string) string {
|
||||
return strings.Join(slice.Map(p, func(part Participant) string {
|
||||
n := part.CreditedAs
|
||||
if n == "" {
|
||||
n = part.Name
|
||||
}
|
||||
n := part.DisplayName()
|
||||
if part.SubRole != "" {
|
||||
return n + " (" + part.SubRole + ")"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue