Skip to content

Commit

Permalink
Fix: Correct check if image proxy should be used
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelveldt committed Oct 23, 2024
1 parent 9a41dda commit ce08d5d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/MediaItemThumb.vue
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ export const getImageURL = function (
if (img.path.startsWith("data:image")) return img.path;
if (
!img.remotely_accessible ||
(!size && img.path.split("//")[0] != window.location.protocol)
size ||
img.path.split("//")[0] != window.location.protocol
) {
// force imageproxy if image is not remotely accessible or we need a resized thumb
// Note that we play it safe here and always enforce the proxy if the schema is different
Expand Down

0 comments on commit ce08d5d

Please sign in to comment.