Skip to content

Commit 7eaa0f6

Browse files
author
Hubot
committed
Sync changes from upstream repository
1 parent fcc8bfe commit 7eaa0f6

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
kind: change
3+
title: Removing Gravatar ID from user payloads
4+
created_at: 2014-09-05
5+
author_name: mastahyeti
6+
---
7+
8+
We have deprecated the `gravatar_id` attribute in the [user
9+
representation](https://developer.github.com/v3/users/). Starting September 19,
10+
the API will always provide an empty string as the value for this attribute.
11+
12+
Users have been able to upload avatars directly to GitHub for [a while
13+
now](https://github.com/blog/1803-switch-your-picture-with-ease). If users
14+
haven't uploaded an avatar, we still try to fetch one from Gravatar, but that
15+
happens behind the scenes on GitHub's servers. As a result, the `gravatar_id`
16+
attribute no longer identifies a GitHub user's canonical avatar. Instead, API
17+
consumers should use the `avatar_url` to fetch a user's avatar. The `avatar_url`
18+
attribute has always been present in the [v3 user representation](/v3/users/)
19+
and is the only reliable way to find a GitHub user's avatar.
20+
21+
If you have any questions or feedback, please [get drop us a line][contact].
22+
23+
[contact]: https://github.com/contact?form[subject]=Removing+Gravatar+ID

content/v3/versions.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ The recommendations below will help you prepare your application for the next ma
9494
1. User attribute: plan["collaborators"]
9595
: Recommendation: Do not use this attribute. It is obsolete.
9696

97+
1. User attribute: gravatar_id
98+
: Recommendation: Use **avatar_url** instead.
99+
97100
1. Pagination parameters `top` and `sha` for method: /repos/:owner/:repo/commits
98101
: Recommendation: When fetching [the list of commits for a repository](/v3/repos/commits/#list-commits-on-a-repository)
99102
use the [standard `per_page` and `page` parameters](/v3/#pagination) for pagination, instead of `per_page`,

0 commit comments

Comments
 (0)