From 653e93fb11fda53910b47926f105edd3e545bb8b Mon Sep 17 00:00:00 2001 From: Maxwell Salzberg Date: Fri, 17 Feb 2012 17:01:00 -0800 Subject: [PATCH] fix the query to only cycle thru the current authors posts --- app/presenters/post_presenter.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/presenters/post_presenter.rb b/app/presenters/post_presenter.rb index 22243f48fbc..e44c2d1bff4 100644 --- a/app/presenters/post_presenter.rb +++ b/app/presenters/post_presenter.rb @@ -41,10 +41,11 @@ def previous_post protected def post_base - if current_user + scope = if current_user Post.owned_or_visible_by_user(current_user) else Post.all_public end + scope.where(:author_id => post.author_id) end end \ No newline at end of file