FIX: RSS feeds should use `created_at` not `bumped_at`
This commit is contained in:
parent
bf8528b6ec
commit
f10d6ed88a
|
@ -92,7 +92,7 @@ class ListController < ApplicationController
|
|||
@link = "#{Discourse.base_url}/#{filter}"
|
||||
@description = I18n.t("rss_description.#{filter}")
|
||||
@atom_link = "#{Discourse.base_url}/#{filter}.rss"
|
||||
@topic_list = TopicQuery.new(nil, order: 'activity').public_send("list_#{filter}")
|
||||
@topic_list = TopicQuery.new(nil, order: 'created').public_send("list_#{filter}")
|
||||
|
||||
render 'list', formats: [:rss]
|
||||
end
|
||||
|
|
|
@ -34,7 +34,8 @@ class TopicQuery
|
|||
'posts' => 'posts_count',
|
||||
'activity' => 'bumped_at',
|
||||
'posters' => 'participant_count',
|
||||
'category' => 'category_id'
|
||||
'category' => 'category_id',
|
||||
'created' => 'created_at'
|
||||
}
|
||||
|
||||
def initialize(user=nil, options={})
|
||||
|
|
Loading…
Reference in New Issue