2013-02-21 13:20:00 -05:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2015-06-09 16:34:20 -04:00
|
|
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
2013-02-21 13:20:00 -05:00
|
|
|
<channel>
|
2015-05-11 01:20:24 -04:00
|
|
|
<% topic_url = @topic_view.absolute_url %>
|
2013-12-15 04:17:39 -05:00
|
|
|
<% lang = SiteSetting.find_by_name('default_locale').try(:value) %>
|
2013-12-18 11:06:36 -05:00
|
|
|
<% site_email = SiteSetting.find_by_name('contact_email').try(:value) %>
|
2013-02-21 13:20:00 -05:00
|
|
|
<title><%= @topic_view.title %></title>
|
2013-12-15 04:17:39 -05:00
|
|
|
<link><%= topic_url %></link>
|
2013-02-21 13:20:00 -05:00
|
|
|
<description><%= @topic_view.posts.first.raw %></description>
|
2017-01-14 14:04:17 -05:00
|
|
|
<% if lang %><language><%= lang.sub('_', '-')%></language><% end %>
|
2014-08-27 12:34:47 -04:00
|
|
|
<lastBuildDate><%= @topic_view.topic.bumped_at.rfc2822 %></lastBuildDate>
|
2013-12-15 04:17:39 -05:00
|
|
|
<category><%= @topic_view.topic.category.name %></category>
|
|
|
|
<atom:link href="<%= topic_url %>.rss" rel="self" type="application/rss+xml" />
|
2013-02-21 13:20:00 -05:00
|
|
|
<% @topic_view.recent_posts.each do |post| %>
|
2013-12-15 04:17:39 -05:00
|
|
|
<% next unless post.user %>
|
|
|
|
<item>
|
2013-12-18 11:06:36 -05:00
|
|
|
<title><%= @topic_view.title %></title>
|
2015-06-09 16:34:20 -04:00
|
|
|
<dc:creator><![CDATA[<%= "@#{post.user.username}#{" #{post.user.name}" if (post.user.name.present? && SiteSetting.enable_names?)}" -%>]]></dc:creator>
|
2013-12-15 04:17:39 -05:00
|
|
|
<description><![CDATA[
|
|
|
|
<% post_url = Discourse.base_url + post.url %>
|
2015-01-22 12:04:35 -05:00
|
|
|
<p><%= t('author_wrote', author: link_to("@#{post.user.username}", user_url(post.user.username_lower))).html_safe %></p>
|
2013-12-15 04:17:39 -05:00
|
|
|
<blockquote>
|
2014-04-15 11:57:43 -04:00
|
|
|
<% if post.hidden %>
|
|
|
|
<%= t('flagging.user_must_edit').html_safe %>
|
|
|
|
<% else %>
|
|
|
|
<%= post.cooked.html_safe %>
|
|
|
|
<% end %>
|
2013-12-15 04:17:39 -05:00
|
|
|
</blockquote>
|
|
|
|
<p><%= link_to t('read_full_topic'), post_url %></p>
|
|
|
|
]]></description>
|
|
|
|
<link><%= post_url %></link>
|
|
|
|
<pubDate><%= post.created_at.rfc2822 %></pubDate>
|
2016-02-22 07:58:02 -05:00
|
|
|
<guid isPermaLink="false"><%= Discourse.current_hostname %>-post-<%= post.topic_id %>-<%= post.post_number %></guid>
|
2018-08-27 18:05:08 -04:00
|
|
|
<source url="<%= topic_url %>.rss"><%= @topic_view.title %></source>
|
2013-12-15 04:17:39 -05:00
|
|
|
</item>
|
2013-02-21 13:20:00 -05:00
|
|
|
<% end %>
|
|
|
|
</channel>
|
|
|
|
</rss>
|