From 2cecc0b21f4ffef20635f1bd277915dcb6db1ee5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Fri, 3 Jan 2014 16:56:03 +0100 Subject: [PATCH] make sure we only count regular posts when calculating Top score --- app/models/top_topic.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/top_topic.rb b/app/models/top_topic.rb index 142b0c1d7fb..e96ed56f195 100644 --- a/app/models/top_topic.rb +++ b/app/models/top_topic.rb @@ -41,6 +41,7 @@ class TopTopic < ActiveRecord::Base WHERE p.created_at >= :from AND p.deleted_at IS NULL AND NOT p.hidden + AND post_type = #{Post.types[:regular]} GROUP BY topic_id" TopTopic.update_top_topics(period, "posts", sql)