mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Refreshing Gravatar didn't work
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user