diff --git a/app/models/topic.rb b/app/models/topic.rb index 1b433d84a..6d516e360 100644 --- a/app/models/topic.rb +++ b/app/models/topic.rb @@ -244,7 +244,7 @@ class Topic < ActiveRecord::Base end def best_post - posts.order('score desc nulls last').limit(1).first + posts.where(post_type: Post.types[:regular]).order('score desc nulls last').limit(1).first end def has_flags?