Fix alias issue when tagging performer from stash-box (#4820)

This commit is contained in:
WithoutPants
2024-05-08 12:47:18 +10:00
committed by GitHub
parent 1b99a03847
commit c5abe28375
2 changed files with 18 additions and 0 deletions

View File

@@ -676,6 +676,9 @@ func performerFragmentToScrapedPerformer(p graphql.PerformerFragment) *models.Sc
return !strings.EqualFold(s, p.Name)
})
// #4596 - stash-box may return duplicate aliases. Filter these out
p.Aliases = stringslice.UniqueFold(p.Aliases)
alias := strings.Join(p.Aliases, ", ")
sp.Aliases = &alias
}