Merge remote-tracking branch 'origin/develop' into benchmark-finishing
[akkoma] / lib / pleroma / web / templates / feed / feed / feed.xml.eex
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
9 <id><%= feed_url(@conn, :feed, @user.nickname) <> ".atom" %></id>
10 <title><%= @user.nickname <> "'s timeline" %></title>
11 <updated><%= most_recent_update(@activities, @user) %></updated>
12 <logo><%= logo(@user) %></logo>
13 <link rel="hub" href="<%= websub_url(@conn, :websub_subscription_request, @user.nickname) %>"/>
14 <link rel="salmon" href="<%= o_status_url(@conn, :salmon_incoming, @user.nickname) %>"/>
15 <link rel="self" href="<%= '#{feed_url(@conn, :feed, @user.nickname)}.atom' %>" type="application/atom+xml"/>
16
17 <%= render @view_module, "_author.xml", assigns %>
18
19 <%= if last_activity(@activities) do %>
20 <link rel="next" href="<%= '#{feed_url(@conn, :feed, @user.nickname)}.atom?max_id=#{last_activity(@activities).id}' %>" type="application/atom+xml"/>
21 <% end %>
22
23 <%= for activity <- @activities do %>
24 <%= render @view_module, "_activity.xml", Map.merge(assigns, %{activity: activity, data: activity_object_data(activity)}) %>
25 <% end %>
26 </feed>