Increased gravatar image size to 160 px.
This commit is contained in:
parent
7e9f246ee7
commit
4f74a73017
|
@ -491,7 +491,7 @@ returns
|
||||||
if !self.image_source || self.image_source == '' || self.image_source =~ /gravatar.com/i
|
if !self.image_source || self.image_source == '' || self.image_source =~ /gravatar.com/i
|
||||||
if self.email
|
if self.email
|
||||||
hash = Digest::MD5.hexdigest(self.email)
|
hash = Digest::MD5.hexdigest(self.email)
|
||||||
self.image_source = "http://www.gravatar.com/avatar/#{hash}?s=48&d=404"
|
self.image_source = "http://www.gravatar.com/avatar/#{hash}?s=160&d=404"
|
||||||
logger.debug "#{self.email}: #{self.image_source}"
|
logger.debug "#{self.email}: #{self.image_source}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue