mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 19:30:23 -06:00
FIX: don't maintain list ordering when grabbing topics, trust server
This commit is contained in:
parent
b573b3227e
commit
70b5dfc4fa
@ -128,15 +128,7 @@ Discourse.TopicList.reopenClass({
|
||||
if (result) {
|
||||
// the new topics loaded from the server
|
||||
var newTopics = Discourse.TopicList.topicsFrom(result);
|
||||
|
||||
var topics = _(topic_ids)
|
||||
.map(function(id){
|
||||
return newTopics.find(function(t){ return t.id === id; });
|
||||
})
|
||||
.compact()
|
||||
.value();
|
||||
|
||||
defer.resolve(topics);
|
||||
defer.resolve(newTopics);
|
||||
} else {
|
||||
defer.reject();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user