Skip to content

Commit

Permalink
Update format checking to avoid naming to influence the image URL logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomazFB committed Oct 29, 2024
1 parent 5f4ee59 commit 67cff9c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public static String getPhotonImageUrl(String imageUrl, int width, int height, Q

// use wordpress.com as the host if image is on wordpress.com since it supports the same
// query params and, more importantly, can handle images in private blogs
if (imageUrl.contains("wordpress.com") || imageUrl.contains(".avif")) {
if (imageUrl.contains("wordpress.com") || imageUrl.endsWith(".avif")) {
return imageUrl + query;
}

Expand Down

0 comments on commit 67cff9c

Please sign in to comment.