fix: avoid applying thumbnail proxy twice in gallery details

This commit is contained in:
root
2026-10-07 23:50:52 +08:00
parent 97d635fbc7
commit de7971fb23
2 changed files with 178 additions and 2 deletions
+3 -2
View File
@@ -51,11 +51,12 @@ const resolutions = computed(() => {
}));
});
// Remote galleries carry a raw path; the proxy URL needs the active auth code.
// A task coming back from the task list already has its thumbnail proxied by
// normalizeTask. Only a raw upstream path (thumbnailUrl) still needs the proxy.
const remoteThumb = computed(() => {
const gallery = remote.value;
if (!gallery) return "";
return ehThumbnailUrl(gallery.thumb_link || gallery.thumbnailUrl, store.state.AuthCode);
return gallery.thumb_link || ehThumbnailUrl(gallery.thumbnailUrl, store.state.AuthCode);
});
function closeInspector() {