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:topicPinned><%= topic.pinned_at ? 'Yes' : 'No' %></discourse:topicPinned>
<discourse:topicClosed><%= topic.closed ? 'Yes' : 'No' %></discourse:topicClosed> <discourse:topicClosed><%= topic.closed ? 'Yes' : 'No' %></discourse:topicClosed>
<discourse:topicArchived><%= topic.archived ? 'Yes' : 'No' %></discourse:topicArchived> <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> <source url="<%= topic_url %>.rss"><%= topic.title %></source>
</item> </item>
<% end %> <% end %>

View File

@ -14,7 +14,7 @@
<description><![CDATA[ <%= post.cooked.html_safe %> ]]></description> <description><![CDATA[ <%= post.cooked.html_safe %> ]]></description>
<link><%= Discourse.base_url + post.url %></link> <link><%= Discourse.base_url + post.url %></link>
<pubDate><%= post.created_at.rfc2822 %></pubDate> <pubDate><%= post.created_at.rfc2822 %></pubDate>
<guid isPermaLink="false">post-<%= post.id %></guid> <guid isPermaLink="false"><%= Discourse.current_hostname %>-post-<%= post.id %></guid>
</item> </item>
<% end %> <% end %>
</channel> </channel>

View File

@ -30,7 +30,7 @@
]]></description> ]]></description>
<link><%= post_url %></link> <link><%= post_url %></link>
<pubDate><%= post.created_at.rfc2822 %></pubDate> <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> <source url="<%= @topic_view.absolute_url %>.rss"><%= @topic_view.title %></source>
</item> </item>
<% end %> <% end %>