Skip to content
Snippets Groups Projects
Commit 87967257 authored by MrZYX's avatar MrZYX
Browse files

fixed #919

parent b93084e0
No related branches found
No related tags found
No related merge requests found
......@@ -71,7 +71,7 @@ class PeopleController < ApplicationController
@posts = current_user.posts_from(@person).where(:type => "StatusMessage").paginate(:per_page => 15, :page => params[:page])
else
@commenting_disabled = true
@posts = @person.posts.where(:type => "StatusMessage", :public => true).paginate(:per_page => 15, :page => params[:page])
@posts = @person.posts.where(:type => "StatusMessage", :public => true).paginate(:per_page => 15, :page => params[:page], :order => 'updated_at DESC')
end
@fakes = PostsFake.new(@posts)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment