fix: avoid applying thumbnail proxy twice in gallery details
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user