A platform for community discussion. Free, open, simple.
DEV: Don't fetch tagNotifications when additional tags are present (#23351)
Jarek Radosz06a9963cbbc1
diff --git a/app/assets/javascripts/discourse/app/routes/tag-show.js b/app/assets/javascripts/discourse/app/routes/tag-show.jsindex 71c4a2b2393..f5907b8ca56 100644--- a/app/assets/javascripts/discourse/app/routes/tag-show.js+++ b/app/assets/javascripts/discourse/app/routes/tag-show.js@@ -59,7 +59,7 @@ export default DiscourseRoute.extend({const filterType = this.navMode.split("/")[0];let tagNotification;- if (tag && tag.id !== NONE && this.currentUser) {+ if (tag && tag.id !== NONE && this.currentUser && !additionalTags) {// If logged in, we should get the tag's user settingstagNotification = await this.store.find("tagNotification",diff --git a/app/assets/javascripts/discourse/tests/acceptance/tags-intersection-test.js b/app/assets/javascripts/discourse/tests/acceptance/tags-intersection-test.jsindex eba23089e29..b0483a261bb 100644--- a/app/assets/javascripts/discourse/tests/acceptance/tags-intersection-test.js+++ b/app/assets/javascripts/discourse/tests/acceptance/tags-intersection-test.js@@ -12,11 +12,6 @@ acceptance("Tags intersection", function (needs) {needs.settings({ tagging_enabled: true });needs.pretender((server, helper) => {- server.get("/tag/first/notifications", () => {- return helper.response({- tag_notification: { id: "first", notification_level: 1 },- });- });server.get("/tags/intersection/first/second.json", () => {return helper.response({users: [],