We pass in nil as a size to person_image_tag, so we need to default it more forcibly.
This commit is contained in:
parent
168ccc11b0
commit
0fff54e074
1 changed files with 2 additions and 1 deletions
|
|
@ -41,7 +41,8 @@ module ApplicationHelper
|
|||
person_image_link(current_user.person)
|
||||
end
|
||||
|
||||
def person_image_tag(person, size=:thumb_small)
|
||||
def person_image_tag(person, size=nil)
|
||||
size ||= :thumb_small
|
||||
"<img alt=\"#{h(person.name)}\" class=\"avatar\" data-person_id=\"#{person.id}\" src=\"#{person.profile.image_url(size)}\" title=\"#{h(person.name)} (#{h(person.diaspora_handle)})\">".html_safe
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue