From a1cbd311667408c601cc7bc6bf955f975e6df956 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Wed, 15 Apr 2015 22:18:45 -0400 Subject: [PATCH] FIX: Tags plugin uses `Discourse.TopicList.list` --- app/assets/javascripts/discourse/models/topic-list.js.es6 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/assets/javascripts/discourse/models/topic-list.js.es6 b/app/assets/javascripts/discourse/models/topic-list.js.es6 index 36b0ba67955..9c6d580f003 100644 --- a/app/assets/javascripts/discourse/models/topic-list.js.es6 +++ b/app/assets/javascripts/discourse/models/topic-list.js.es6 @@ -152,6 +152,11 @@ TopicList.reopenClass({ return store.findFiltered('topicList', {filter, params}); }, + list(filter) { + Ember.warn('`Discourse.TopicList.list` is deprecated. Use the store instead'); + return this.find(filter); + }, + // Sets `hideCategory` if all topics in the last have a particular category hideUniformCategory(list, category) { const hideCategory = !list.get('topics').any(function (t) { return t.get('category') !== category; });