mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Render category descriptions differently on the categories page
This commit is contained in:
@@ -23,7 +23,7 @@ class CategoryFeaturedTopic < ActiveRecord::Base
|
||||
admin.admin = true
|
||||
admin.id = -1
|
||||
|
||||
query = TopicQuery.new(admin, per_page: SiteSetting.category_featured_topics)
|
||||
query = TopicQuery.new(admin, per_page: SiteSetting.category_featured_topics, except_topic_id: c.topic_id)
|
||||
results = query.list_category(c)
|
||||
if results.present?
|
||||
results.topic_ids.each_with_index do |topic_id, idx|
|
||||
|
||||
Reference in New Issue
Block a user