FIX: Refreshing Gravatar didn't work

This commit is contained in:
Gerhard Schlager 2017-12-20 20:49:58 +01:00
parent 7f69362d9d
commit ac7e6dab06
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ export default Ember.Controller.extend(ModalFunctionality, {
this.set("gravatarRefreshDisabled", true);
return ajax(`/user_avatar/${this.get("username")}/refresh_gravatar.json`, { method: "POST" })
.then(result => {
if (!result.gravatar_avatar_upload_id) {
if (!result.gravatar_upload_id) {
this.set("gravatarFailed", true);
} else {
this.setProperties({