14b0ee59449f4b85be941c9439aa315a35522acf
[anni] / lib / pleroma / web / templates / feed / feed / tag.atom.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   xmlns:statusnet="http://status.net/schema/api/1/">
9
10   <id><%= Routes.tag_feed_url(@conn, :feed, @tag) <> ".atom" %></id>
11   <title>#<%= @tag %></title>
12   <subtitle><%= Gettext.dpgettext("static_pages", "tag feed description", "These are public toots tagged with #%{tag}. You can interact with them if you have an account anywhere in the fediverse.", tag: @tag) %></subtitle>
13   <logo><%= feed_logo() %></logo>
14   <updated><%= most_recent_update(@activities) %></updated>
15   <link rel="self" href="<%= '#{Routes.tag_feed_url(@conn, :feed, @tag)}.atom'  %>" type="application/atom+xml"/>
16
17   <%= for activity <- @activities do %>
18   <%= render Phoenix.Controller.view_module(@conn), "_tag_activity.atom", Map.merge(assigns, prepare_activity(activity, actor: true)) %>
19   <% end %>
20 </feed>