mirror of https://github.com/stashapp/stash.git
Merge url's in scene tagger instead of replacing (#4343)
This commit is contained in:
parent
74ddfa47e9
commit
7a9cb548ab
|
@ -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 &&
|
||||
|
|
Loading…
Reference in New Issue