Skip to content

Commit

Permalink
Add avif check to getPhotonImageUrl function
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomazFB committed Oct 29, 2024
1 parent 3d7484a commit 5f4ee59
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")) {
if (imageUrl.contains("wordpress.com") || imageUrl.contains(".avif")) {
return imageUrl + query;
}

Expand Down

0 comments on commit 5f4ee59

Please sign in to comment.