DEV: Clear filters when navigating to a post (#12557)

DEV: Clear filters when navigating to a post (#12557)

diff --git a/app/assets/javascripts/discourse/app/lib/url.js b/app/assets/javascripts/discourse/app/lib/url.js
index f67bd9e..a7c7da5 100644
--- a/app/assets/javascripts/discourse/app/lib/url.js
+++ b/app/assets/javascripts/discourse/app/lib/url.js
@@ -370,7 +370,7 @@ const DiscourseURL = EmberObject.extend({
           opts.nearPost = topicController.get("model.highest_post_number");
         }
 
-        opts.cancelSummary = true;
+        opts.cancelFilter = true;
 
         postStream.refresh(opts).then(() => {
           const closest = postStream.closestPostNumberFor(opts.nearPost || 1);
diff --git a/app/assets/javascripts/discourse/app/models/post-stream.js b/app/assets/javascripts/discourse/app/models/post-stream.js
index 80fe6b2..2c07775 100644
--- a/app/assets/javascripts/discourse/app/models/post-stream.js
+++ b/app/assets/javascripts/discourse/app/models/post-stream.js
@@ -311,9 +311,9 @@ export default RestModel.extend({
     opts = opts || {};
     opts.nearPost = parseInt(opts.nearPost, 10);
 
-    if (opts.cancelSummary) {
-      this.set("summary", false);
-      delete opts.cancelSummary;
+    if (opts.cancelFilter) {
+      this.cancelFilter();
+      delete opts.cancelFilter;
     }
 
     const topic = this.topic;

GitHub sha: 524890c5

This commit appears in #12557 which was approved by eviltrout. It was merged by pmusaraj.

This commit has been mentioned on Discourse Meta. There might be relevant details there: