From 838f8cb77df782f0547183ecbff6defe96442777 Mon Sep 17 00:00:00 2001 From: albert Date: Wed, 30 Jan 2013 22:02:50 -0800 Subject: [PATCH] fix --- app/logical/post_sets/post.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/logical/post_sets/post.rb b/app/logical/post_sets/post.rb index 622d4a4e2..ae91d0bfa 100644 --- a/app/logical/post_sets/post.rb +++ b/app/logical/post_sets/post.rb @@ -38,7 +38,11 @@ module PostSets raise SearchError.new("Upgrade your account to search more than two tags at once") end - @posts ||= ::Post.tag_match(tag_string).paginate(page, :count => ::Post.fast_count(tag_string), :limit => per_page).all + @posts ||= begin + temp = ::Post.tag_match(tag_string).paginate(page, :count => ::Post.fast_count(tag_string), :limit => per_page) + temp.all + temp + end rescue ::Post::SearchError @posts = ::Post.where("false") end