New: Allow Description and Alias on Tag Creation in Scene Tagger (#6872)

This commit is contained in:
Gykes 2026-05-03 15:32:28 -07:00 committed by GitHub
parent 1ec5583931
commit db4eabea81
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 6 deletions

View file

@ -204,11 +204,7 @@ func (c Client) sceneFragmentToScrapedScene(ctx context.Context, s *graphql.Scen
}
for _, t := range s.Tags {
st := &models.ScrapedTag{
Name: t.Name,
RemoteSiteID: &t.ID,
}
ss.Tags = append(ss.Tags, st)
ss.Tags = append(ss.Tags, tagFragmentToScrapedTag(*t))
}
return ss, nil

View file

@ -434,7 +434,11 @@ const StashSearchResult: React.FC<IStashSearchResultProps> = ({
t: GQL.ScrapedTag,
createInput?: GQL.TagCreateInput
) {
const toCreate: GQL.TagCreateInput = createInput ?? { name: t.name };
const toCreate: GQL.TagCreateInput = createInput ?? {
name: t.name,
description: t.description ?? undefined,
aliases: t.alias_list?.filter((a) => a) ?? undefined,
};
// If the tag has a remote_site_id and we have an endpoint, include the stash_id
const endpoint = currentSource?.sourceInput.stash_box_endpoint;