mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 08:57:10 -06:00
FIX: RSS feed must have unique GUID
This commit is contained in:
parent
4d981cec53
commit
c2caf90de6
@ -30,7 +30,7 @@
|
||||
<discourse:topicPinned><%= topic.pinned_at ? 'Yes' : 'No' %></discourse:topicPinned>
|
||||
<discourse:topicClosed><%= topic.closed ? 'Yes' : 'No' %></discourse:topicClosed>
|
||||
<discourse:topicArchived><%= topic.archived ? 'Yes' : 'No' %></discourse:topicArchived>
|
||||
<guid isPermaLink="false">topic-<%= topic.id %></guid>
|
||||
<guid isPermaLink="false"><%= Discourse.current_hostname %>-topic-<%= topic.id %></guid>
|
||||
<source url="<%= topic_url %>.rss"><%= topic.title %></source>
|
||||
</item>
|
||||
<% end %>
|
||||
|
@ -14,7 +14,7 @@
|
||||
<description><![CDATA[ <%= post.cooked.html_safe %> ]]></description>
|
||||
<link><%= Discourse.base_url + post.url %></link>
|
||||
<pubDate><%= post.created_at.rfc2822 %></pubDate>
|
||||
<guid isPermaLink="false">post-<%= post.id %></guid>
|
||||
<guid isPermaLink="false"><%= Discourse.current_hostname %>-post-<%= post.id %></guid>
|
||||
</item>
|
||||
<% end %>
|
||||
</channel>
|
||||
|
@ -30,7 +30,7 @@
|
||||
]]></description>
|
||||
<link><%= post_url %></link>
|
||||
<pubDate><%= post.created_at.rfc2822 %></pubDate>
|
||||
<guid isPermaLink="false">post-<%= post.topic_id %>-<%= post.post_number %></guid>
|
||||
<guid isPermaLink="false"><%= Discourse.current_hostname %>-post-<%= post.topic_id %>-<%= post.post_number %></guid>
|
||||
<source url="<%= @topic_view.absolute_url %>.rss"><%= @topic_view.title %></source>
|
||||
</item>
|
||||
<% end %>
|
||||
|
Loading…
Reference in New Issue
Block a user