emulate the value for V2 API

This commit is contained in:
Kohsuke Kawaguchi
2012-04-10 12:57:25 -07:00
parent 3a9b6665ee
commit 3717d2ed32

View File

@@ -71,7 +71,11 @@ public abstract class GHPerson {
* that indicates the avatar image URL.
*/
public String getAvatarUrl() {
return avatar_url;
if (avatar_url!=null)
return avatar_url;
if (gravatar_id!=null)
return "https://secure.gravatar.com/avatar/"+gravatar_id;
return null;
}
/**