From e7cc2e6d33d3363ed9e6ef6164dacff4a51ace92 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Wed, 7 Mar 2018 16:53:37 +0800 Subject: [PATCH] FIX: `loadBefore` should include current params as well. --- app/assets/javascripts/discourse/models/topic-list.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/models/topic-list.js.es6 b/app/assets/javascripts/discourse/models/topic-list.js.es6 index 61fdac3e29..61ee322a38 100644 --- a/app/assets/javascripts/discourse/models/topic-list.js.es6 +++ b/app/assets/javascripts/discourse/models/topic-list.js.es6 @@ -80,7 +80,7 @@ const TopicList = RestModel.extend({ const url = `${Discourse.getURL("/")}${this.get('filter')}.json?topic_ids=${topic_ids.join(",")}`; const store = this.store; - return ajax({ url }).then(result => { + return ajax({ url, data: this.get("params") }).then(result => { let i = 0; topicList.forEachNew(TopicList.topicsFrom(store, result), function(t) { // highlight the first of the new topics so we can get a visual feedback