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 <id><%= @data["id"] %></id>
5 <title><%= activity_title(@data, Keyword.get(@feed_config, :post_title, %{})) %></title>
6 <content type="html"><%= activity_description(@data) %></content>
7 <published><%= to_rfc3339(@data["published"]) %></published>
8 <updated><%= to_rfc3339(@data["published"]) %></updated>
9 <ostatus:conversation ref="<%= activity_context(@activity) %>">
10 <%= activity_context(@activity) %>
11 </ostatus:conversation>
12 <link href="<%= activity_context(@activity) %>" rel="ostatus:conversation"/>
14 <%= if @data["summary"] != "" do %>
15 <summary><%= escape(@data["summary"]) %></summary>
18 <%= if @activity.local do %>
19 <link type="application/atom+xml" href='<%= @data["id"] %>' rel="self"/>
20 <link type="text/html" href='<%= @data["id"] %>' rel="alternate"/>
22 <link type="text/html" href='<%= @data["external_url"] %>' rel="alternate"/>
25 <%= for tag <- Pleroma.Object.hashtags(@object) do %>
26 <category term="<%= tag %>"></category>
29 <%= for attachment <- @data["attachment"] || [] do %>
30 <link rel="enclosure" href="<%= attachment_href(attachment) %>" type="<%= attachment_type(attachment) %>"/>
33 <%= if @data["inReplyTo"] do %>
34 <thr:in-reply-to ref='<%= @data["inReplyTo"] %>' href='<%= get_href(@data["inReplyTo"]) %>'/>
37 <%= for id <- @activity.recipients do %>
38 <%= if id == Pleroma.Constants.as_public() do %>
39 <link rel="mentioned" ostatus:object-type="http://activitystrea.ms/schema/1.0/collection" href="http://activityschema.org/collection/public"/>
41 <%= unless Regex.match?(~r/^#{Pleroma.Web.Endpoint.url()}.+followers$/, id) do %>
42 <link rel="mentioned" ostatus:object-type="http://activitystrea.ms/schema/1.0/person" href="<%= id %>"/>
47 <%= for {emoji, file} <- @data["emoji"] || %{} do %>
48 <link name="<%= emoji %>" rel="emoji" href="<%= file %>"/>