Don't include category definitions on Categories page

This commit is contained in:
Robin Ward
2014-02-07 17:01:31 -05:00
parent 33661b2d56
commit 350eb82223
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ class CategoryFeaturedTopic < ActiveRecord::Base
def self.feature_topics_for(c, existing=nil)
return if c.blank?
query = TopicQuery.new(self.fake_admin, per_page: SiteSetting.category_featured_topics, except_topic_ids: [c.topic_id], visible: true)
query = TopicQuery.new(self.fake_admin, per_page: SiteSetting.category_featured_topics, except_topic_ids: [c.topic_id], visible: true, no_definitions: true)
results = query.list_category(c).topic_ids
return if results == existing