mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 20:02:46 +08:00
FIX: RSS Language should use a dash/hypen instead of underscore
This commit is contained in:
parent
5f08630c27
commit
d0a3dc10d8
|
@ -6,7 +6,7 @@
|
|||
<title><%= @title %></title>
|
||||
<link><%= @link %></link>
|
||||
<description><%= @description %></description>
|
||||
<% if lang %><language><%= lang%></language><% end %>
|
||||
<% if lang %><language><%= lang.sub('_', '-')%></language><% end %>
|
||||
<% if @topic_list.topics && @topic_list.topics.length > 0 %>
|
||||
<lastBuildDate><%= @topic_list.topics.first.created_at.rfc2822 %></lastBuildDate>
|
||||
<atom:link href="<%= @atom_link %>" rel="self" type="application/rss+xml" />
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<title><%= @topic_view.title %></title>
|
||||
<link><%= topic_url %></link>
|
||||
<description><%= @topic_view.posts.first.raw %></description>
|
||||
<%= "<language>#{lang}</language>" if lang %>
|
||||
<% if lang %><language><%= lang.sub('_', '-')%></language><% end %>
|
||||
<lastBuildDate><%= @topic_view.topic.bumped_at.rfc2822 %></lastBuildDate>
|
||||
<category><%= @topic_view.topic.category.name %></category>
|
||||
<atom:link href="<%= topic_url %>.rss" rel="self" type="application/rss+xml" />
|
||||
|
|
Loading…
Reference in New Issue
Block a user