BUGFIX: rails is choking on userpage_url for System user, breaks rss

This commit is contained in:
Sam 2014-02-12 14:05:13 +11:00
parent 9b57501bfc
commit 03619917f0
1 changed files with 1 additions and 1 deletions

View File

@ -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>