mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-27 03:04:12 +00:00
25 lines
1 KiB
Elixir
25 lines
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><%= user_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="<%= '#{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="<%= '#{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>
|