dfm / osrc

The Open Source Report Card
http://osrc.dfm.io
MIT License
1.03k stars 137 forks source link

Profile Picture does not update #138

Open haneefmubarak opened 10 years ago

haneefmubarak commented 10 years ago

It appears that osrc does not update the profile picture for users. I have had my new picture for a fair while now, but my old one remains in place @ http://osrc.dfm.io/haneefmubarak/

Is there a way that we could get it to update profile pictures or always pull the latest profile picture?

PotcFdk commented 10 years ago

osrc doesn't seem to use the GitHub profile avatar at all, but rather embeds Gravatar images.

Look here, it doesn't show my profile picture, since I'm not using Gravatar - yet I have one on GitHub. So what I think is happening, is that you have uploaded a profile picture on GitHub but didn't change the Gravatar one.

You can see the raw data for your profile here: http://osrc.dfm.io/haneefmubarak.json This reveals the following: "gravatar": "217cc277a166901382530b0e9907265f" That's your Gravatar id, which is an md5 sum of the e-mail address you registered with Gravatar. If you prepend https://secure.gravatar.com/avatar/ you get https://secure.gravatar.com/avatar/217cc277a166901382530b0e9907265f, which points at your Gravatar image. Maybe we can get GitHub profile avatar support?

haneefmubarak commented 10 years ago

Yeah, that makes sense. GitHub profiles are accessed along the lines of https://api.github.com/users/haneefmubarak. There it does give you the URL for the GitHub avatar in the avatar_url field - for me, https://avatars.githubusercontent.com/u/1464144?, so therefore you get your true GitHub avatar.

Perhaps we could pull avatars from there?

Uko commented 10 years ago

:+1:

Walkman100 commented 10 years ago

Chipping a bit of information in here, I recently changed my profile pic from gravatar and it shows up. If i go to Show image location, it pops up as https://secure.gravatar.com/avatar/fc9f0e24dd356322dec021092439f6e8?s=220, which is exactly as mentioned.

fresheneesz commented 9 years ago

Found this after updating my github avatar. My avatar isn't change in most places. But it is changed on the settings page - not only next to the "upload new picture" button, but also in the topbar. Nowhere else on the site except on the settings page is the topbar image changed. Very bizarre that only the settings page uses a different image.

fresheneesz commented 9 years ago

Ah I see what must be happening, github isn't using robust cache busting techniques, so it probably takes howeverlong the CDN holds onto files for the image to update. You can see that the image here: https://avatars1.githubusercontent.com/u/149531?v=3&s=460 is still the old image, whereas this is the new image (just without the parameters) https://avatars0.githubusercontent.com/u/149531

Walkman100 commented 9 years ago

@fresheneesz must be a caching issue, they look the same to me.

fresheneesz commented 9 years ago

It wasn't a local browser caching issue. I tried on multiple browsers (which I never use github for). They're the same now for me too - I noticed that they updated last night.

chedwick commented 9 years ago

It is happening here too. I've created a new organization and after updating everything few days ago, they still not reflecting what I did. The organization has 3 repos and none of them have correct descriptions and they don't reflect whatever is changed on their correspondent repos.


Edit: After few hours I have changed image logo and other contents, everything is OK now. Be aware that in my case it wasn't a browser cache issue. So, I guess one has only to be more patient.

Walkman100 commented 9 years ago

Ah I see what must be happening, github isn't using robust cache busting techniques, so it probably takes howeverlong the CDN holds onto files for the image to update.

So, I guess one has only to be more patient.

Pretty much.

BryceTheCoder commented 8 years ago

^ Exactly. You need to wait a few before it truly uploads and changes it for you.

ghost commented 6 years ago

I have similar problem ;(

ghost commented 6 years ago

Go into your browser's settings and clear browsing data, which can include the cache, saved images ...

NoreenMekky commented 6 years ago

use CTRL+Shift+R in order to reload page while ignoring cache.

misterhappy2 commented 6 years ago

One WEEK after I updated my github profile photo, it appeared in my Linkedin profile link.

LencomPete commented 5 years ago

Thanks all. I will wait.

rafaleo commented 5 years ago

just checking my photo is there yet...

reneehickman commented 5 years ago

Same issue for me as well.

PotcFdk commented 5 years ago

osrc is dead (it seems?), why are you commenting on this issue? What website are you even checking this on? I'm so confused.