First
[anni] / lib / pleroma / web / templates / feed / feed / _activity.rss.eex
1 <item>
2   <activity:object-type>http://activitystrea.ms/schema/1.0/note</activity:object-type>
3   <activity:verb>http://activitystrea.ms/schema/1.0/post</activity:verb>
4   <guid><%= @data["id"] %></guid>
5   <title><%= activity_title(@data, Keyword.get(@feed_config, :post_title, %{})) %></title>
6   <description><%= activity_description(@data) %></description>
7   <pubDate><%= to_rfc2822(@data["published"]) %></pubDate>
8   <ostatus:conversation ref="<%= activity_context(@activity) %>">
9     <%= activity_context(@activity) %>
10   </ostatus:conversation>
11
12   <%= if @activity.local do %>
13     <link><%= @data["id"] %></link>
14   <% else %>
15     <link><%= @data["external_url"] %></link>
16   <% end %>
17
18   <link rel="ostatus:conversation"><%= activity_context(@activity) %></link>
19
20   <%= for tag <- Pleroma.Object.hashtags(@object) do %>
21     <category term="<%= tag %>"></category>
22   <% end %>
23
24   <%= for attachment <- @data["attachment"] || [] do %>
25     <enclosure url="<%= attachment_href(attachment) %>" type="<%= attachment_type(attachment) %>" />
26   <% end %>
27
28   <%= if @data["inReplyTo"] do %>
29     <thr:in-reply-to ref='<%= @data["inReplyTo"] %>' href='<%= get_href(@data["inReplyTo"]) %>'/>
30   <% end %>
31
32   <%= for id <- @activity.recipients do %>
33     <%= if id == Pleroma.Constants.as_public() do %>
34       <link rel="mentioned" ostatus:object-type="http://activitystrea.ms/schema/1.0/collection">http://activityschema.org/collection/public</link>
35     <% else %>
36       <%= unless Regex.match?(~r/^#{Pleroma.Web.Endpoint.url()}.+followers$/, id) do %>
37         <link rel="mentioned" ostatus:object-type="http://activitystrea.ms/schema/1.0/person"><%= id %></link>
38       <% end %>
39     <% end %>
40   <% end %>
41
42   <%= for {emoji, file} <- @data["emoji"] || %{} do %>
43     <link name="<%= emoji %>" rel="emoji"><%= file %></link>
44   <% end %>
45 </item>