mirror of
https://github.com/lingble/chatwoot.git
synced 2025-10-31 19:17:48 +00:00
fix: Add default 404 param on gravatar (#1316)
This commit is contained in:
@@ -114,7 +114,7 @@ class User < ApplicationRecord
|
||||
def avatar_url
|
||||
if avatar_img_url == ''
|
||||
hash = Digest::MD5.hexdigest(email)
|
||||
return "https://www.gravatar.com/avatar/#{hash}"
|
||||
return "https://www.gravatar.com/avatar/#{hash}?d=404"
|
||||
end
|
||||
avatar_img_url
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user