2016-05-21 19:02:49 -04:00
|
|
|
return unless event.visible_to_user?(current_user)
|
|
|
|
|
|
|
|
xml.entry do
|
|
|
|
xml.id "tag:#{request.host},#{event.created_at.strftime("%Y-%m-%d")}:#{event.id}"
|
|
|
|
xml.link href: event_feed_url(event)
|
|
|
|
xml.title truncate(event_feed_title(event), length: 80)
|
2017-03-11 17:05:01 -05:00
|
|
|
xml.updated event.updated_at.xmlschema
|
2016-05-21 19:02:49 -04:00
|
|
|
xml.media :thumbnail, width: "40", height: "40", url: image_url(avatar_icon(event.author_email))
|
|
|
|
|
|
|
|
xml.author do
|
|
|
|
xml.name event.author_name
|
2017-02-16 18:41:34 -05:00
|
|
|
xml.email event.author_public_email
|
2016-05-21 19:02:49 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
xml.summary(type: "xhtml") do |summary|
|
|
|
|
event_summary = event_feed_summary(event)
|
|
|
|
|
|
|
|
summary << event_summary unless event_summary.nil?
|
|
|
|
end
|
|
|
|
end
|