diff --git a/app/controllers/aspects_controller.rb b/app/controllers/aspects_controller.rb index 2554d5c7b..f6d049318 100644 --- a/app/controllers/aspects_controller.rb +++ b/app/controllers/aspects_controller.rb @@ -28,7 +28,7 @@ class AspectsController < ApplicationController @posts = StatusMessage.joins(:aspects).where(:pending => false, :aspects => {:id => @aspect_ids}).includes(:comments, :photos).select('DISTINCT `posts`.*').paginate( - :page => params[:page], :per_page => 15, :order => 'created_at DESC') + :page => params[:page], :per_page => 15, :order => 'updated_at DESC') @fakes = PostsFake.new(@posts) @contacts = current_user.contacts.includes(:person => :profile).where(:pending => false) diff --git a/app/models/comment.rb b/app/models/comment.rb index da6711d65..275acffba 100644 --- a/app/models/comment.rb +++ b/app/models/comment.rb @@ -18,7 +18,7 @@ class Comment < ActiveRecord::Base xml_attr :creator_signature xml_attr :post_creator_signature - belongs_to :post + belongs_to :post, :touch => true belongs_to :person validates_presence_of :text, :post