FIX: ensure letter avatar service uses same algorithm

This commit is contained in:
Sam 2015-09-14 09:42:21 +10:00
parent 780faa484d
commit f948ee9e26
1 changed files with 1 additions and 1 deletions

View File

@ -472,7 +472,7 @@ class User < ActiveRecord::Base
# TODO it may be worth caching this in a distributed cache, should be benched
if SiteSetting.external_system_avatars_enabled
url = SiteSetting.external_system_avatars_url.dup
url.gsub! "{color}", letter_avatar_color(username)
url.gsub! "{color}", letter_avatar_color(username.downcase)
url.gsub! "{username}", username
url.gsub! "{first_letter}", username[0].downcase
url