BUGFIX: rails is choking on userpage_url for System user, breaks rss
This commit is contained in:
parent
9b57501bfc
commit
03619917f0
|
@ -18,7 +18,7 @@
|
||||||
<author><%= "#{site_email} (@#{post.user.username}#{" #{post.user.name}" if post.user.name.present?})" -%></author>
|
<author><%= "#{site_email} (@#{post.user.username}#{" #{post.user.name}" if post.user.name.present?})" -%></author>
|
||||||
<description><![CDATA[
|
<description><![CDATA[
|
||||||
<% post_url = Discourse.base_url + post.url %>
|
<% post_url = Discourse.base_url + post.url %>
|
||||||
<p><%= t('author_wrote', author: link_to(post.user.name, userpage_url(post.user))).html_safe %></p>
|
<p><%= t('author_wrote', author: link_to(post.user.name, userpage_url(post.user.username_lower))).html_safe %></p>
|
||||||
<blockquote>
|
<blockquote>
|
||||||
<%= post.cooked.html_safe %>
|
<%= post.cooked.html_safe %>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
|
|
Loading…
Reference in New Issue