Pleroma.Object/1: take %Object{} as argument instead
[akkoma] / lib / pleroma / web / templates / feed / feed / _activity.rss.eex
index a304a16afecec2827062775909c9c97d17a4de6e..9ebaa3300d78f74357144db83f909d5f4ec673f4 100644 (file)
@@ -12,7 +12,7 @@
   <link rel="ostatus:conversation"><%= activity_context(@activity) %></link>
 
   <%= if @data["summary"] do %>
-    <description><%= @data["summary"] %></description>
+    <description><%= escape(@data["summary"]) %></description>
   <% end %>
 
   <%= if @activity.local do %>
@@ -21,8 +21,8 @@
     <link><%= @data["external_url"] %></link>
   <% end %>
 
-  <%= for tag <- @data["tag"] || [] do %>
-    <category term="<%= tag %>"></category>
+  <%= for hashtag <- Object.hashtags(@object) do %>
+    <category term="<%= hashtag %>"></category>
   <% end %>
 
   <%= for attachment <- @data["attachment"] || [] do %>