FIX: category id in filterCategory (#8555)

Small regression was created here: https://github.com/discourse/discourse/commit/374534f00ee#diff-4af46675500edc092f9224ca5835a7ddR106

After that change `listFilter` is including `categoryId` like `c/cat/subcat/6/l/latest` instead of `c/cat/subcat/l/latest`

Therefore, `trackIncoming` function in topic-tracking-state couldn't properly filter new messages
This commit is contained in:
Krzysztof Kotlarek
2019-12-17 08:33:38 +11:00
committed by GitHub
parent 998bbdc40f
commit 84ede5867c
2 changed files with 4 additions and 4 deletions
@@ -221,9 +221,9 @@ const TopicTrackingState = EmberObject.extend({
if (split.length >= 4) {
filter = split[split.length - 1];
// c/cat/subcat/l/latest
// c/cat/subcat/6/l/latest
var category = Category.findSingleBySlug(
split.splice(1, split.length - 3).join("/")
split.splice(1, split.length - 4).join("/")
);
this.set("filterCategory", category);
} else {