mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 16:23:44 +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) {
|
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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user