FIX: ensure letter avatar service uses same algorithm
This commit is contained in:
parent
780faa484d
commit
f948ee9e26
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue