mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 21:10:17 +08: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