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:
parent
35547295bd
commit
2e7b69f849
|
@ -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 %>
|
||||
|
|
|
@ -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 %>
|
||||
|
|
Loading…
Reference in New Issue