From 7a20ed061702847e96f28d32df4f737d8eff3dda Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Mon, 11 May 2015 10:50:24 +0530 Subject: [PATCH] FIX: rss feed should be valid --- app/views/list/list.rss.erb | 2 +- app/views/topics/show.rss.erb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/list/list.rss.erb b/app/views/list/list.rss.erb index 63684a5e820..deb5e80f022 100644 --- a/app/views/list/list.rss.erb +++ b/app/views/list/list.rss.erb @@ -11,7 +11,7 @@ <%= @topic_list.topics.first.created_at.rfc2822 %> <% @topic_list.topics.each do |topic| %> - <% topic_url = topic.relative_url -%> + <% topic_url = topic.url -%> <%= topic.title %> <%= "no-reply@example.com (@#{topic.user.username}#{" #{topic.user.name}" if (topic.user.name.present? && SiteSetting.enable_names?)})" -%> diff --git a/app/views/topics/show.rss.erb b/app/views/topics/show.rss.erb index dbfda1d2e90..03b5471ecbc 100644 --- a/app/views/topics/show.rss.erb +++ b/app/views/topics/show.rss.erb @@ -1,7 +1,7 @@ - <% topic_url = @topic_view.relative_url %> + <% topic_url = @topic_view.absolute_url %> <% lang = SiteSetting.find_by_name('default_locale').try(:value) %> <% site_email = SiteSetting.find_by_name('contact_email').try(:value) %> <%= @topic_view.title %> @@ -31,7 +31,7 @@ <%= post_url %> <%= post.created_at.rfc2822 %> post-<%= post.topic_id %>-<%= post.post_number %> - <%= @topic_view.title %> + <%= @topic_view.title %> <% end %>