Fix order:comm and comment deletion for unbumped comments

fixes #1351, fixes #1352
This commit is contained in:
Toks
2013-12-24 20:59:19 -05:00
parent cac73439bd
commit 8055a7c64b
4 changed files with 58 additions and 12 deletions

View File

@@ -78,7 +78,7 @@ private
end
def index_by_post
@posts = Post.where("last_commented_at IS NOT NULL").tag_match(params[:tags]).reorder("last_commented_at DESC").paginate(params[:page], :limit => 5, :search_count => params[:search])
@posts = Post.where("last_comment_bumped_at IS NOT NULL").tag_match(params[:tags]).reorder("last_comment_bumped_at DESC").paginate(params[:page], :limit => 5, :search_count => params[:search])
@posts.all
respond_with(@posts) do |format|
format.html {render :action => "index_by_post"}