diff --git a/app/models/user.rb b/app/models/user.rb index 2c6f31f35e00..1836948003f3 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -612,7 +612,7 @@ def reload_avatar # If the user doesn't have gravatar try to get a cartodb avatar if self.avatar_url.nil? || self.avatar_url == "//#{default_avatar}" # Only update the avatar if the user avatar is nil or the default image - self.avatar_url = "//#{cartodb_avatar}" + self.avatar_url = "#{cartodb_avatar}" self.this.update avatar_url: self.avatar_url end end @@ -638,7 +638,7 @@ def avatar end def default_avatar - return "cartodb.s3.amazonaws.com/static/public_dashboard_default_avatar.png" + "/assets/unversioned/images/avatars/public_dashboard_default_avatar.png" end def gravatar(protocol = "http://", size = 128, default_image = default_avatar) diff --git a/app/views/admin/shared/_dashboard_header.erb b/app/views/admin/shared/_dashboard_header.erb index ec90cec4532f..bb28e00e933c 100644 --- a/app/views/admin/shared/_dashboard_header.erb +++ b/app/views/admin/shared/_dashboard_header.erb @@ -39,7 +39,7 @@