logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git

_activity.atom.eex (2164B)


  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_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"/>
  13. <%= if @data["summary"] != "" do %>
  14. <summary><%= escape(@data["summary"]) %></summary>
  15. <% end %>
  16. <%= if @activity.local do %>
  17. <link type="application/atom+xml" href='<%= @data["id"] %>' rel="self"/>
  18. <link type="text/html" href='<%= @data["id"] %>' rel="alternate"/>
  19. <% else %>
  20. <link type="text/html" href='<%= @data["external_url"] %>' rel="alternate"/>
  21. <% end %>
  22. <%= for tag <- Pleroma.Object.hashtags(@object) do %>
  23. <category term="<%= tag %>"></category>
  24. <% end %>
  25. <%= for attachment <- @data["attachment"] || [] do %>
  26. <link rel="enclosure" href="<%= attachment_href(attachment) %>" type="<%= attachment_type(attachment) %>"/>
  27. <% end %>
  28. <%= if @data["inReplyTo"] do %>
  29. <thr:in-reply-to ref='<%= @data["inReplyTo"] %>' href='<%= get_href(@data["inReplyTo"]) %>'/>
  30. <% end %>
  31. <%= for id <- @activity.recipients do %>
  32. <%= if id == Pleroma.Constants.as_public() do %>
  33. <link rel="mentioned" ostatus:object-type="http://activitystrea.ms/schema/1.0/collection" href="http://activityschema.org/collection/public"/>
  34. <% else %>
  35. <%= unless Regex.match?(~r/^#{Pleroma.Web.Endpoint.url()}.+followers$/, id) do %>
  36. <link rel="mentioned" ostatus:object-type="http://activitystrea.ms/schema/1.0/person" href="<%= id %>"/>
  37. <% end %>
  38. <% end %>
  39. <% end %>
  40. <%= for {emoji, file} <- @data["emoji"] || %{} do %>
  41. <link name="<%= emoji %>" rel="emoji" href="<%= file %>"/>
  42. <% end %>
  43. </entry>