Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Brandl <abrandl@gitlab.com>2018-02-09 13:43:12 +0300
committerAndreas Brandl <abrandl@gitlab.com>2018-02-13 20:04:51 +0300
commitbe231d21650cc5698a283bf8da58dc433a395fbf (patch)
tree3cabce5347f8ed6b82fcb53d597282e5375b32c1 /app/views/events
parentf338ff43c13a6dd5c3bf90bd58c0d5cff52fc79c (diff)
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.builder2
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