FIX: RSS feed must have unique GUID

This commit is contained in:
Arpit Jalan 2016-02-22 18:28:02 +05:30
parent 4d981cec53
commit c2caf90de6
3 changed files with 3 additions and 3 deletions

View file

@ -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 %>

View file

@ -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>

View file

@ -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 %>