forked from AkkomaGang/akkoma
24 lines
1.1 KiB
Elixir
24 lines
1.1 KiB
Elixir
<?xml version="1.0" encoding="UTF-8"?>
|
|
<feed
|
|
xmlns="http://www.w3.org/2005/Atom"
|
|
xmlns:thr="http://purl.org/syndication/thread/1.0"
|
|
xmlns:activity="http://activitystrea.ms/spec/1.0/"
|
|
xmlns:poco="http://portablecontacts.net/spec/1.0"
|
|
xmlns:ostatus="http://ostatus.org/schema/1.0">
|
|
|
|
<id><%= feed_url(@conn, :feed, @user.nickname) <> ".atom" %></id>
|
|
<title><%= @user.nickname <> "'s timeline" %></title>
|
|
<updated><%= most_recent_update(@activities, @user) %></updated>
|
|
<logo><%= logo(@user) %></logo>
|
|
<link rel="self" href="<%= '#{feed_url(@conn, :feed, @user.nickname)}.atom' %>" type="application/atom+xml"/>
|
|
|
|
<%= render @view_module, "_author.xml", assigns %>
|
|
|
|
<%= if last_activity(@activities) do %>
|
|
<link rel="next" href="<%= '#{feed_url(@conn, :feed, @user.nickname)}.atom?max_id=#{last_activity(@activities).id}' %>" type="application/atom+xml"/>
|
|
<% end %>
|
|
|
|
<%= for activity <- @activities do %>
|
|
<%= render @view_module, "_activity.xml", Map.merge(assigns, %{activity: activity, data: activity_object_data(activity)}) %>
|
|
<% end %>
|
|
</feed>
|