RSS feed for topics and posts now use a guid that will always be unique, unlike urls which can change when the topic slug changes

This commit is contained in:
Neil Lalonde 2014-05-01 14:09:15 -04:00
parent 35547295bd
commit 2e7b69f849
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@
]]></description>
<link><%= topic_url %></link>
<pubDate><%= topic.created_at.rfc2822 %></pubDate>
<guid><%= topic_url %></guid>
<guid isPermaLink="false">topic-<%= topic.id %></guid>
<source url="<%= topic_url %>.rss"><%= topic.title %></source>
</item>
<% end %>

View File

@ -30,7 +30,7 @@
]]></description>
<link><%= post_url %></link>
<pubDate><%= post.created_at.rfc2822 %></pubDate>
<guid><%= post_url %></guid>
<guid isPermaLink="false">post-<%= post.topic_id %>-<%= post.post_number %></guid>
<source url="<%= Discourse.base_url %><%= @topic_view.relative_url %>.rss"><%= @topic_view.title %></source>
</item>
<% end %>