logo

pleroma

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

_tag_activity.atom.eex (1970B)


  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. <%= render Phoenix.Controller.view_module(@conn), "_tag_author.atom", assigns %>
  5. <id><%= @data["id"] %></id>
  6. <title><%= activity_title(@data, Keyword.get(@feed_config, :post_title, %{})) %></title>
  7. <content type="html"><%= activity_description(@data) %></content>
  8. <published><%= to_rfc3339(@data["published"]) %></published>
  9. <updated><%= to_rfc3339(@data["published"]) %></updated>
  10. <ostatus:conversation ref="<%= activity_context(@activity) %>">
  11. <%= activity_context(@activity) %>
  12. </ostatus:conversation>
  13. <link href="<%= activity_context(@activity) %>" rel="ostatus:conversation"/>
  14. <%= if @data["summary"] != "" do %>
  15. <summary><%= @data["summary"] %></summary>
  16. <% end %>
  17. <%= if @activity.local do %>
  18. <link type="application/atom+xml" href='<%= @data["id"] %>' rel="self"/>
  19. <link type="text/html" href='<%= @data["id"] %>' rel="alternate"/>
  20. <% else %>
  21. <link type="text/html" href='<%= @data["external_url"] %>' rel="alternate"/>
  22. <% end %>
  23. <%= for id <- @activity.recipients do %>
  24. <%= if id == Pleroma.Constants.as_public() do %>
  25. <link rel="mentioned"
  26. ostatus:object-type="http://activitystrea.ms/schema/1.0/collection"
  27. href="http://activityschema.org/collection/public"/>
  28. <% else %>
  29. <%= unless Regex.match?(~r/^#{Pleroma.Web.Endpoint.url()}.+followers$/, id) do %>
  30. <link rel="mentioned"
  31. ostatus:object-type="http://activitystrea.ms/schema/1.0/person"
  32. href="<%= id %>" />
  33. <% end %>
  34. <% end %>
  35. <% end %>
  36. <%= for tag <- Pleroma.Object.hashtags(@object) do %>
  37. <category term="<%= tag %>"></category>
  38. <% end %>
  39. <%= for {emoji, file} <- @data["emoji"] || %{} do %>
  40. <link name="<%= emoji %>" rel="emoji" href="<%= file %>"/>
  41. <% end %>
  42. </entry>