public static String getGravatarUrl ( String emailAddress ) { String hash = generateHash ( emailAddress ) ; if ( hash == null ) { return "https://www.gravatar.com/avatar/00000000000000000000000000000000" + ".jpg?d=mm" ; } else { return "https://www.gravatar.com/avatar/" + hash + ".jpg?d=mm" ; } }
Generates a Gravatar URL for the specified email address . If the email address is blank or does not have a Gravatar will fallback to usingthe mystery - man image .