Skip to content

Commit d7f6b10

Browse files
committed
All gravatar requests now default to 404.
1 parent fa54198 commit d7f6b10

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
*/
88
public class GravatarUtils {
99

10-
private static final DefaultImage DEFAULT_GRAVATAR = DefaultImage.MYSTERY_MAN;
10+
// by default tell gravatar to respond to non-existent images with a 404 - this means
11+
// it's up to the caller to catch the 404 and provide a suitable default image
12+
private static final DefaultImage DEFAULT_GRAVATAR = DefaultImage.STATUS_404;
1113

1214
public static enum DefaultImage {
1315
MYSTERY_MAN,

0 commit comments

Comments
 (0)