FIX: Refreshing Gravatar didn't work
This commit is contained in:
parent
7f69362d9d
commit
ac7e6dab06
|
@ -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({
|
||||
|
|
Loading…
Reference in New Issue