/forum_topics/$id.atom: fix ordering (fix #3069).

This commit is contained in:
evazion
2017-05-21 10:31:21 -05:00
parent a4220854a3
commit 76b50c31bf

View File

@@ -45,7 +45,7 @@ class ForumTopicsController < ApplicationController
@forum_posts = ForumPost.search(:topic_id => @forum_topic.id).order("forum_posts.id").paginate(params[:page])
respond_with(@forum_topic) do |format|
format.atom do
@forum_posts = @forum_posts.includes(:creator).load
@forum_posts = @forum_posts.reverse_order.includes(:creator).load
end
end
end