logo

pleroma

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

user.rss.eex (1363B)


  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <rss version="2.0"
  3. xmlns:atom="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:ostatus="http://ostatus.org/schema/1.0"
  7. xmlns:poco="http://portablecontacts.net/spec/1.0">
  8. <channel>
  9. <title><%= @user.nickname <> "'s timeline" %></title>
  10. <link><%= '#{Routes.user_feed_url(@conn, :feed, @user.nickname)}.rss' %></link>
  11. <atom:link href="<%= Routes.user_feed_url(@conn, :feed, @user.nickname) <> ".atom" %>"
  12. rel="self" type="application/rss+xml" />
  13. <description><%= escape(@user.bio) %></description>
  14. <image>
  15. <url><%= logo(@user) %></url>
  16. <title><%= @user.nickname <> "'s timeline" %></title>
  17. <link><%= '#{Routes.user_feed_url(@conn, :feed, @user.nickname)}.rss' %></link>
  18. </image>
  19. <%= render Phoenix.Controller.view_module(@conn), "_author.rss", assigns %>
  20. <%= if last_activity(@activities) do %>
  21. <link rel="next"><%= '#{Routes.user_feed_url(@conn, :feed, @user.nickname)}.rss?max_id=#{last_activity(@activities).id}' %></link>
  22. <% end %>
  23. <%= for activity <- @activities do %>
  24. <%= render Phoenix.Controller.view_module(@conn), "_activity.rss", Map.merge(assigns, prepare_activity(activity)) %>
  25. <% end %>
  26. </channel>
  27. </rss>