Skip to content

Commit 5f4ee59

Browse files
committed
Add avif check to getPhotonImageUrl function
1 parent 3d7484a commit 5f4ee59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WordPressUtils/src/main/java/org/wordpress/android/util/PhotonUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public static String getPhotonImageUrl(String imageUrl, int width, int height, Q
130130

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

0 commit comments

Comments
 (0)