From c0c130395b59a87ecdc1cb46497263a4dd8a71e8 Mon Sep 17 00:00:00 2001 From: albert Date: Sun, 24 Feb 2013 17:37:59 -0500 Subject: [PATCH] bug fix with comment bumping --- app/models/comment.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/comment.rb b/app/models/comment.rb index a6c30708e..9f4589f3e 100644 --- a/app/models/comment.rb +++ b/app/models/comment.rb @@ -87,7 +87,7 @@ class Comment < ActiveRecord::Base if Comment.where("post_id = ?", post_id).count <= Danbooru.config.comment_threshold && !do_not_bump_post execute_sql("UPDATE posts SET last_commented_at = ? WHERE id = ?", created_at, post_id) elsif Comment.where("post_id = ?", post_id).empty? - execute_sql("UPDATE posts SET last_commented_at = null WHERE id = ?", created_at, post_id) + execute_sql("UPDATE posts SET last_commented_at = null WHERE id = ?", post_id) end end