Commit graph

6 commits

Author SHA1 Message Date
Andreas Brandl
be231d2165 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.
2018-02-13 18:04:51 +01:00
Yorick Peterse
631801674f
Reuse authors when rendering event Atom feeds
Previously we'd use "event.author_email" which translates to
"event.author.email". This would result in an extra query being executed
_for every event_ just to get the same author's Email address.

Instead of doing all this useless work we can just pass the User object
returned by "event.author" since:

1. This allows us to re-use the user object's Email address.
2. Authors are eager-loaded, so this doesn't cause any N+1 queries.
2017-11-28 17:10:12 +01:00
winniehell
2c358a052e Add username to activity atom feed (!10802) 2017-04-26 23:21:30 +02:00
Rémy Coutable
153b594c06 Merge branch '28058-hide-emails-in-atom-feeds' into 'security'
Only show public emails in atom feeds

See merge request !2066
2017-03-20 18:45:45 -07:00
blackst0ne
7f33eb39e9 Fix xml.updated field in rss/atom feeds 2017-03-12 09:05:01 +11:00
Robert Speicher
66cebb6f61 Remove event_to_atom helper 2016-05-23 12:37:40 -04:00