mirror of
https://github.com/discourse/discourse.git
synced 2026-09-05 04:40:41 -05:00
remove unused api call
correct spec
This commit is contained in:
@@ -127,10 +127,6 @@ class TopicQuery
|
||||
create_list(:private_messages, {}, list)
|
||||
end
|
||||
|
||||
def list_category(category)
|
||||
create_list(:category, unordered: true, category: category.id)
|
||||
end
|
||||
|
||||
def list_category_topic_ids(category)
|
||||
query = default_results(category: category.id)
|
||||
pinned_ids = query.where('pinned_at IS NOT NULL').order('pinned_at DESC').pluck(:id)
|
||||
|
||||
Reference in New Issue
Block a user