mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
FIX: RSS feed must have unique GUID
This commit is contained in:
parent
4d981cec53
commit
c2caf90de6
3 changed files with 3 additions and 3 deletions
|
@ -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 a new issue