mirror of
https://github.com/discourse/discourse.git
synced 2025-06-07 19:34:54 +08:00
DEV: Don't fetch tagNotifications when additional tags are present (#23351)
We don't display them, see: 006a5166e5/app/assets/javascripts/discourse/app/components/d-navigation.js (L55-L55)
This commit is contained in:
@ -59,7 +59,7 @@ export default DiscourseRoute.extend({
|
|||||||
const filterType = this.navMode.split("/")[0];
|
const filterType = this.navMode.split("/")[0];
|
||||||
|
|
||||||
let tagNotification;
|
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 settings
|
// If logged in, we should get the tag's user settings
|
||||||
tagNotification = await this.store.find(
|
tagNotification = await this.store.find(
|
||||||
"tagNotification",
|
"tagNotification",
|
||||||
|
@ -12,11 +12,6 @@ acceptance("Tags intersection", function (needs) {
|
|||||||
needs.settings({ tagging_enabled: true });
|
needs.settings({ tagging_enabled: true });
|
||||||
|
|
||||||
needs.pretender((server, helper) => {
|
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", () => {
|
server.get("/tags/intersection/first/second.json", () => {
|
||||||
return helper.response({
|
return helper.response({
|
||||||
users: [],
|
users: [],
|
||||||
|
Reference in New Issue
Block a user