forked from AkkomaGang/akkoma
27 lines
1.2 KiB
Elixir
27 lines
1.2 KiB
Elixir
<?xml version="1.0" encoding="UTF-8"?>
|
|
<feed
|
|
xmlns="http://www.w3.org/2005/Atom"
|
|
xmlns:rss="https://www.rssboard.org/rss-specification"
|
|
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"
|
|
xmlns:ap="https://www.w3.org/TR/activitypub/">
|
|
|
|
<id><%= Routes.user_feed_url(@conn, :feed, @user.nickname) <> ".atom" %></id>
|
|
<title><%= @user.nickname <> "'s timeline" %></title>
|
|
<updated><%= most_recent_update(@activities, @user, "{RFC3339z}") %></updated>
|
|
<logo><%= logo(@user) %></logo>
|
|
<link rel="self" href="<%= Routes.user_feed_url(@conn, :feed, @user.nickname) <> ".atom" %>" type="application/atom+xml"/>
|
|
|
|
<%= render @view_module, "_author.atom", assigns %>
|
|
|
|
<%= if last_activity(@activities) do %>
|
|
<link rel="next" href="<%= Routes.user_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.atom", Map.merge(assigns, prepare_activity(activity)) %>
|
|
<% end %>
|
|
</feed>
|