logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git

user.atom.eex (1189B)


  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <feed
  3. xmlns="http://www.w3.org/2005/Atom"
  4. xmlns:thr="http://purl.org/syndication/thread/1.0"
  5. xmlns:activity="http://activitystrea.ms/spec/1.0/"
  6. xmlns:poco="http://portablecontacts.net/spec/1.0"
  7. xmlns:ostatus="http://ostatus.org/schema/1.0">
  8. <id><%= Routes.user_feed_url(@conn, :feed, @user.nickname) <> ".atom" %></id>
  9. <title><%= @user.nickname <> "'s timeline" %></title>
  10. <subtitle><%= escape(@user.bio) %></subtitle>
  11. <updated><%= most_recent_update(@activities, @user, :atom) %></updated>
  12. <logo><%= logo(@user) %></logo>
  13. <link rel="self" href="<%= '#{Routes.user_feed_url(@conn, :feed, @user.nickname)}.atom' %>" type="application/atom+xml"/>
  14. <%= render Phoenix.Controller.view_module(@conn), "_author.atom", assigns %>
  15. <%= if last_activity(@activities) do %>
  16. <link rel="next" href="<%= '#{Routes.user_feed_url(@conn, :feed, @user.nickname)}.atom?max_id=#{last_activity(@activities).id}' %>" type="application/atom+xml"/>
  17. <% end %>
  18. <%= for activity <- @activities do %>
  19. <%= render Phoenix.Controller.view_module(@conn), "_activity.atom", Map.merge(assigns, prepare_activity(activity)) %>
  20. <% end %>
  21. </feed>