FIX: don't maintain list ordering when grabbing topics, trust server

This commit is contained in:
Sam 2014-08-06 10:23:07 +10:00
parent b573b3227e
commit 70b5dfc4fa

View File

@ -128,15 +128,7 @@ Discourse.TopicList.reopenClass({
if (result) { if (result) {
// the new topics loaded from the server // the new topics loaded from the server
var newTopics = Discourse.TopicList.topicsFrom(result); var newTopics = Discourse.TopicList.topicsFrom(result);
defer.resolve(newTopics);
var topics = _(topic_ids)
.map(function(id){
return newTopics.find(function(t){ return t.id === id; });
})
.compact()
.value();
defer.resolve(topics);
} else { } else {
defer.reject(); defer.reject();
} }