mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 23:36:11 +08:00
Fix url not to be nil
This commit is contained in:

committed by
fabianoleittes

parent
8fa9c51bf4
commit
4df8babb9a
@ -322,7 +322,7 @@ class User < ActiveRecord::Base
|
||||
if SiteSetting.allow_uploaded_avatars? && use_uploaded_avatar
|
||||
# the avatars might take a while to generate
|
||||
# so return the url of the original image in the meantime
|
||||
uploaded_avatar_template.present? ? uploaded_avatar_template : uploaded_avatar.url
|
||||
uploaded_avatar_template.present? ? uploaded_avatar_template : uploaded_avatar.try(:url)
|
||||
else
|
||||
User.gravatar_template(email)
|
||||
end
|
||||
|
Reference in New Issue
Block a user