diff options
author | Andreas Brandl <abrandl@gitlab.com> | 2018-02-09 11:43:12 +0100 |
---|---|---|
committer | Andreas Brandl <abrandl@gitlab.com> | 2018-02-13 18:04:51 +0100 |
commit | be231d21650cc5698a283bf8da58dc433a395fbf (patch) | |
tree | 3cabce5347f8ed6b82fcb53d597282e5375b32c1 /app/views/events | |
parent | f338ff43c13a6dd5c3bf90bd58c0d5cff52fc79c (diff) | |
download | gitlab-ce-be231d21650cc5698a283bf8da58dc433a395fbf.tar.gz |
Use more specific #avatar_icon_for_user.
Whenever we already deal with a User object, let's use the more specific
method avatar_icon_for_user.
Diffstat (limited to 'app/views/events')
-rw-r--r-- | app/views/events/_event.atom.builder | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/events/_event.atom.builder b/app/views/events/_event.atom.builder index 38741fe6662..d56234e6c1a 100644 --- a/app/views/events/_event.atom.builder +++ b/app/views/events/_event.atom.builder @@ -10,7 +10,7 @@ xml.entry do # eager-loaded. This allows us to re-use the user object's Email address, # instead of having to run additional queries to figure out what Email to use # for the avatar. - xml.media :thumbnail, width: "40", height: "40", url: image_url(avatar_icon(event.author)) + xml.media :thumbnail, width: "40", height: "40", url: image_url(avatar_icon_for_user(event.author)) xml.author do xml.username event.author_username |