mirror of
https://github.com/discourse/discourse.git
synced 2026-08-26 21:27:16 -05:00
Don't include category definitions on Categories page
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user