Support blurhash
[akkoma] / lib / pleroma / web / templates / feed / feed / _activity.atom.eex
1 <entry>
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_content(@data) %></content>
7 <published><%= @activity.data["published"] %></published>
8 <updated><%= @activity.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"/>
13
14 <%= if @data["summary"] do %>
15 <summary><%= escape(@data["summary"]) %></summary>
16 <% end %>
17
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"/>
21 <% else %>
22 <link type="text/html" href='<%= @data["external_url"] %>' rel="alternate"/>
23 <% end %>
24
25 <%= for tag <- @data["tag"] || [] do %>
26 <category term="<%= tag %>"></category>
27 <% end %>
28
29 <%= for attachment <- @data["attachment"] || [] do %>
30 <link rel="enclosure" href="<%= attachment_href(attachment) %>" type="<%= attachment_type(attachment) %>"/>
31 <% end %>
32
33 <%= if @data["inReplyTo"] do %>
34 <thr:in-reply-to ref='<%= @data["inReplyTo"] %>' href='<%= get_href(@data["inReplyTo"]) %>'/>
35 <% end %>
36
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"/>
40 <% else %>
41 <%= unless Regex.match?(~r/^#{Pleroma.Web.base_url()}.+followers$/, id) do %>
42 <link rel="mentioned" ostatus:object-type="http://activitystrea.ms/schema/1.0/person" href="<%= id %>"/>
43 <% end %>
44 <% end %>
45 <% end %>
46
47 <%= for {emoji, file} <- @data["emoji"] || %{} do %>
48 <link name="<%= emoji %>" rel="emoji" href="<%= file %>"/>
49 <% end %>
50 </entry>