fix(feed): correct RSS permalink metadata
This commit is contained in:
parent
ecd8a14435
commit
c518319349
3 changed files with 37 additions and 4 deletions
|
|
@ -1,7 +1,7 @@
|
|||
<item>
|
||||
<activity:object-type>http://activitystrea.ms/schema/1.0/note</activity:object-type>
|
||||
<activity:verb>http://activitystrea.ms/schema/1.0/post</activity:verb>
|
||||
<guid isPermaLink="true"><%= @data["id"] %></guid>
|
||||
<guid isPermaLink="true"><%= escape(@data["id"] || "") %></guid>
|
||||
<title><%= activity_title(@data, Keyword.get(@feed_config, :post_title, %{})) %></title>
|
||||
<description><%= activity_description(@data) %></description>
|
||||
<content:encoded><![CDATA[<%= rss_content_encoded(@data) %>]]></content:encoded>
|
||||
|
|
@ -10,7 +10,7 @@
|
|||
<%= activity_context(@activity) %>
|
||||
</ostatus:conversation>
|
||||
|
||||
<link><%= activity_link(@activity, @data) %></link>
|
||||
<link><%= escape(activity_link(@activity, @data) || "") %></link>
|
||||
|
||||
<%= for tag <- Pleroma.Object.hashtags(@object) do %>
|
||||
<%= if tag && tag != "" do %>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<item>
|
||||
<guid isPermalink="true"><%= activity_link(@activity, @data) %></guid>
|
||||
<link><%= activity_link(@activity, @data) %></link>
|
||||
<guid isPermaLink="true"><%= escape(activity_link(@activity, @data) || "") %></guid>
|
||||
<link><%= escape(activity_link(@activity, @data) || "") %></link>
|
||||
<pubDate><%= to_rfc2822(@data["published"]) %></pubDate>
|
||||
<title><%= activity_title(@data, Keyword.get(@feed_config, :post_title, %{})) %></title>
|
||||
<description><%= activity_description(@data) %></description>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue