mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
Tag aliases (#1412)
* Add Tag Update/UpdateFull * Tag alias implementation * Refactor tag page * Add aliases in UI * Include tag aliases in q filter * Include aliases in tag select * Add aliases to auto-tagger * Use aliases in scraper * Add tag aliases for filename parser
This commit is contained in:
@@ -852,6 +852,12 @@ func createTags(tqb models.TagReaderWriter, n int, o int) error {
|
||||
return fmt.Errorf("Error creating tag %v+: %s", tag, err.Error())
|
||||
}
|
||||
|
||||
// add alias
|
||||
alias := getTagStringValue(i, "Alias")
|
||||
if err := tqb.UpdateAliases(created.ID, []string{alias}); err != nil {
|
||||
return fmt.Errorf("error setting tag alias: %s", err.Error())
|
||||
}
|
||||
|
||||
tagIDs = append(tagIDs, created.ID)
|
||||
tagNames = append(tagNames, created.Name)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user