mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 02:40:53 -06:00
Stop leaking site_email in rss
This commit is contained in:
parent
7460e5ed24
commit
b77fe49150
@ -14,7 +14,7 @@
|
||||
<% topic_url = Discourse.base_url + topic.relative_url -%>
|
||||
<item>
|
||||
<title><%= topic.title %></title>
|
||||
<author><%= "#{site_email} (@#{topic.user.username}#{" #{topic.user.name}" if topic.user.name.present?})" -%></author>
|
||||
<author><%= "no-reply@example.com (@#{topic.user.username}#{" #{topic.user.name}" if topic.user.name.present?})" -%></author>
|
||||
<category><%= topic.category.name %></category>
|
||||
<description><![CDATA[
|
||||
<p><%= t('author_wrote', author: link_to(topic.user.name, userpage_url(topic.user.username_lower))).html_safe %></p>
|
||||
|
@ -15,7 +15,7 @@
|
||||
<% next unless post.user %>
|
||||
<item>
|
||||
<title><%= @topic_view.title %></title>
|
||||
<author><%= "#{site_email} (@#{post.user.username}#{" #{post.user.name}" if post.user.name.present?})" -%></author>
|
||||
<author><%= "no-reply@example.com (@#{post.user.username}#{" #{post.user.name}" if post.user.name.present?})" -%></author>
|
||||
<description><![CDATA[
|
||||
<% post_url = Discourse.base_url + post.url %>
|
||||
<p><%= t('author_wrote', author: link_to(post.user.name, userpage_url(post.user.username_lower))).html_safe %></p>
|
||||
|
Loading…
Reference in New Issue
Block a user