diff --git a/app/models/user.rb b/app/models/user.rb index ca68e277b57..19431c099dd 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -415,11 +415,11 @@ class User < ActiveRecord::Base return letter_avatar_template(username) if !uploaded_avatar_id id = uploaded_avatar_id username ||= "" - "/user_avatar/#{RailsMultisite::ConnectionManagement.current_hostname}/#{username.downcase}/{size}/#{id}.png" + "#{Discourse.base_uri}/user_avatar/#{RailsMultisite::ConnectionManagement.current_hostname}/#{username.downcase}/{size}/#{id}.png" end def self.letter_avatar_template(username) - "/letter_avatar/#{username.downcase}/{size}/#{LetterAvatar.version}.png" + "#{Discourse.base_uri}/letter_avatar/#{username.downcase}/{size}/#{LetterAvatar.version}.png" end def avatar_template