Retrieve issue author's avatar by user, not user#email.

This commit is contained in:
Andreas Brandl 2018-02-09 12:24:48 +01:00
parent a5e271b684
commit 9adafff0b2

View file

@ -3,7 +3,7 @@ xml.entry do
xml.link href: project_issue_url(issue.project, issue)
xml.title truncate(issue.title, length: 80)
xml.updated issue.updated_at.xmlschema
xml.media :thumbnail, width: "40", height: "40", url: image_url(avatar_icon(issue.author_email))
xml.media :thumbnail, width: "40", height: "40", url: image_url(avatar_icon_for_user(issue.author))
xml.author do
xml.name issue.author_name