Prevent topics of muted categories from showing up in summary email

I noticed on my forum that when a category is muted, topics from that category still show up in summary emails.

This is unexpected behavior because my assumption is that muted categories, which is defined as never being notified about new topics in this category, wouldn’t show up in the summary emails either.

Here’s an example of a user who has muted “Internal Comms”

When I previewed their summary email, Internal Comms showed up.

I propose that summary emails do not include topics from muted categories unless that specific topic within a muted category has a different status.

5 Likes

From looking at the code, it seems that muted topics are supposed to be excluded from the summary email. Note that it is muted topics that are excluded, not topics that are in muted categories. Where this could be significant is if a user who has muted a category has interacted with one of that category’s topics in a way that would set their notification level for the topic to anything other than muted. This would happen if the user had replied to the topic prior to muting its category, or if the user had spent time reading the topic, or replied to it after having muted the category.

Does the above explain what you are seeing for this user?

2 Likes

I would expect topic-level watching, etc., to override a category mute. Moreso in “real time” email notifications, but also in the summary digest although my usage of summaries tends to be more about finding topics I haven’t jumped into, yet.

2 Likes

No, this user has not interacted at all with the internal comms topic that I highlighted.

I agree with this. Topic level watch settings should override category settings. So, if I’m watching or tracking a topic in an otherwise muted category, I should be able to see that topic in my summary email.

Michael, would you want to see topics in categories that you’ve muted, though? I mute categories because I’m not interested, so I wouldn’t want to see them in my summary email either.

3 Likes

Same here. I would neither expect nor desire to see them in my summary email.

2 Likes

Do you know if muted category topics are showing up in your forums’ summary emails? I’m wondering if it’s me or if it’s something that’s part of Discourse.

1 Like

Hello, I’ve moved this topic to feature because my tests all show that topics in muted categories continue to show up. This is really high priority for our community!

3 Likes

Hmm, can we have someone double-check this code path next week @zogstrip? That shouldn’t be happening…

4 Likes

@nbianca can you add that to your list?

2 Likes

I checked our code and can confirm that:

  • digests DO NOT include muted topics (see code)
  • digests DO NOT include topics from muted categories (see code)
  • digests DO NOT include watched topics from muted categories, but they will
4 Likes

Unfortunately, while this is the code, my users are definitely getting topics from muted categories in their summary email as of this morning. Is this reproducible on your end?

Maybe it makes a difference if the parent category is set to Regular/Normal and it’s the sub-category that is Muted?

Wonderful!

3 Likes

Would I file this topic under bug, given what you found in the code? I’ll go ahead and move it in a couple of days if you don’t object.

1 Like

Unless you can reproduce it, or give us steps to reproduce it, I think it’s more likely that the users are not reporting it correctly or misunderstanding their settings… sorry :frowning:

Happy to keep looking if you can give us repro steps or leads!

I can confirm this behavior with release 3.2.0

I’m seeing topics from a Muted Category going in in the Summary digest emails (under Popular Topics). Is there some specific settings that needs to set to prevent this from happening?

For example, the Site Feedback category is muted but I’m still seeing topics from that category being sent out in the digest emails.

There’s also the digest suppress categories admin setting, which sounds like it could be useful here:

1 Like

That’s also enabled, it’s still sending topics from that category.

Hmm. I’m afraid I can’t repro this on my test site. If I add a category to digest_suppress_categories it doesn’t show in my activity summary, and if I remove it it then shows up.

What I can do help debug this? The digest emails are showing topics from the muted categories for some users.
One thing I noticed, one of these users hasn’t logged into the site for a very long time (say 9 months), the topics send to users email was created in between the time the user last logged into the site and the time the topic was originally created.

User last logged in → 9 months ago
Topic created → 6 months ago
Category muted → 4 months ago