From f10d6ed88ac391c72429feedbcccb3e26bc29584 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Wed, 27 Aug 2014 12:42:54 -0400 Subject: [PATCH] FIX: RSS feeds should use `created_at` not `bumped_at` --- app/controllers/list_controller.rb | 2 +- lib/topic_query.rb | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/controllers/list_controller.rb b/app/controllers/list_controller.rb index 1e50370eda5..0bb05b16c8b 100644 --- a/app/controllers/list_controller.rb +++ b/app/controllers/list_controller.rb @@ -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 diff --git a/lib/topic_query.rb b/lib/topic_query.rb index 02160c3b0e9..9dd9f66a564 100644 --- a/lib/topic_query.rb +++ b/lib/topic_query.rb @@ -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={})