From 195cdaec11b143d3d9e98cc2f813038359fd978d Mon Sep 17 00:00:00 2001
From: dfabulich
Date: Tue, 9 Jun 2015 13:34:20 -0700
Subject: [PATCH] Convert author tag to dc:creator
RSS spec says the author tag should be an email address, forcing us to put in a junk no-reply@example.com email. Instead, we should use dc:creator, which allows us to use any name we want for the user.
---
app/views/list/list.rss.erb | 4 ++--
app/views/posts/latest.rss.erb | 4 ++--
app/views/topics/show.rss.erb | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/app/views/list/list.rss.erb b/app/views/list/list.rss.erb
index deb5e80f022..b1eb41f1038 100644
--- a/app/views/list/list.rss.erb
+++ b/app/views/list/list.rss.erb
@@ -1,5 +1,5 @@
-
+
<% lang = SiteSetting.find_by_name('default_locale').try(:value) %>
<% site_email = SiteSetting.find_by_name('contact_email').try(:value) %>
@@ -14,7 +14,7 @@
<% topic_url = topic.url -%>
<%= topic.title %>
- <%= "no-reply@example.com (@#{topic.user.username}#{" #{topic.user.name}" if (topic.user.name.present? && SiteSetting.enable_names?)})" -%>
+ ]]><%= topic.category.name %><%= t('author_wrote', author: link_to("@#{topic.user.username}", "#{Discourse.base_url}/users/#{topic.user.username_lower}")).html_safe %>