From e0baf9d6c583bf40e10fe6c212fc95744ff6b697 Mon Sep 17 00:00:00 2001 From: maxwell Date: Thu, 22 Jul 2010 23:36:37 -0700 Subject: [PATCH] MS sort the updates on a author's page --- app/controllers/authors_controller.rb | 2 +- app/helpers/dashboards_helper.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/authors_controller.rb b/app/controllers/authors_controller.rb index e8ba0ee16..ebf6b5096 100644 --- a/app/controllers/authors_controller.rb +++ b/app/controllers/authors_controller.rb @@ -3,7 +3,7 @@ class AuthorsController < ApplicationController def show @author= Author.where(:id => params[:id]).first - @author_ostatus_posts = @author.ostatus_posts + @author_ostatus_posts = @author.ostatus_posts.sort(:created_at.desc) end end diff --git a/app/helpers/dashboards_helper.rb b/app/helpers/dashboards_helper.rb index 1c11747d7..aab2aa7a6 100644 --- a/app/helpers/dashboards_helper.rb +++ b/app/helpers/dashboards_helper.rb @@ -4,7 +4,7 @@ module DashboardsHelper if params[:action] =='ostatus' 'OStatus Dashboard' else - 'Dashboard' + 'Dashboard' end end end