fix pool metatags, fix artist search

This commit is contained in:
albert
2013-02-26 23:35:17 -08:00
parent ef7ae0c5bf
commit cca0cc8dbd
4 changed files with 8 additions and 8 deletions

View File

@@ -84,8 +84,6 @@ class Comment < ActiveRecord::Base
end
def update_last_commented_at
puts Comment.where("post_id = ?", post_id).count
puts !do_not_bump_post?
if Comment.where("post_id = ?", post_id).count == 0
Post.update_all("last_commented_at = NULL", ["id = ?", post_id])
elsif Comment.where("post_id = ?", post_id).count <= Danbooru.config.comment_threshold && !do_not_bump_post?