We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5eeb1ff + 631dcc1 commit a8a084bCopy full SHA for a8a084b
lib/application_helper_avatar_patch.rb
@@ -30,7 +30,7 @@ def avatar_with_local(user, options = { })
30
if user.is_a?(User)then
31
av = user.attachments.find_by_description 'avatar'
32
if av then
33
- image_url = url_for :only_path => false, :controller => 'account', :action => 'get_avatar', :id => user
+ image_url = url_for :only_path => true, :controller => 'account', :action => 'get_avatar', :id => user
34
options[:size] = "64" unless options[:size]
35
return "<img class=\"gravatar\" width=\"#{options[:size]}\" height=\"#{options[:size]}\" src=\"#{image_url}\" />".html_safe
36
end
0 commit comments