mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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}"
|
@link = "#{Discourse.base_url}/#{filter}"
|
||||||
@description = I18n.t("rss_description.#{filter}")
|
@description = I18n.t("rss_description.#{filter}")
|
||||||
@atom_link = "#{Discourse.base_url}/#{filter}.rss"
|
@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]
|
render 'list', formats: [:rss]
|
||||||
end
|
end
|
||||||
|
@ -34,7 +34,8 @@ class TopicQuery
|
|||||||
'posts' => 'posts_count',
|
'posts' => 'posts_count',
|
||||||
'activity' => 'bumped_at',
|
'activity' => 'bumped_at',
|
||||||
'posters' => 'participant_count',
|
'posters' => 'participant_count',
|
||||||
'category' => 'category_id'
|
'category' => 'category_id',
|
||||||
|
'created' => 'created_at'
|
||||||
}
|
}
|
||||||
|
|
||||||
def initialize(user=nil, options={})
|
def initialize(user=nil, options={})
|
||||||
|
Loading…
Reference in New Issue
Block a user