Skip to content

Commit

Permalink
Merge url's in scene tagger instead of replacing (stashapp#4343)
Browse files Browse the repository at this point in the history
  • Loading branch information
Emilo2 authored and halkeye committed Sep 1, 2024
1 parent 94bc42d commit ba68ba9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions ui/v2.5/src/components/Tagger/scenes/StashSearchResult.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -363,15 +363,20 @@ const StashSearchResult: React.FC<IStashSearchResultProps> = ({
),
studio_id: studioID,
cover_image: resolveField("cover_image", undefined, imgData),
urls: resolveField("url", stashScene.urls, scene.urls),
tag_ids: tagIDs,
stash_ids: stashScene.stash_ids ?? [],
code: resolveField("code", stashScene.code, scene.code),
director: resolveField("director", stashScene.director, scene.director),
};

const includeStashID = !excludedFieldList.includes("stash_ids");
const includeUrl = !excludedFieldList.includes("url");
if (includeUrl && scene.urls) {
sceneCreateInput.urls = uniq(stashScene.urls.concat(scene.urls));
} else {
sceneCreateInput.urls = stashScene.urls;
}

const includeStashID = !excludedFieldList.includes("stash_ids");
if (
includeStashID &&
currentSource?.stashboxEndpoint &&
Expand Down

0 comments on commit ba68ba9

Please sign in to comment.