Empêcher l'affichage des sujets des catégories masquées dans l'e-mail récapitulatif

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 « J'aime »

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 « J'aime »

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 « J'aime »

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 « J'aime »

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

2 « J'aime »

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 « J'aime »

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 « J'aime »

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

4 « J'aime »

@nbianca can you add that to your list?

2 « J'aime »

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 « J'aime »

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 « J'aime »

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 « J'aime »

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!

Je peux confirmer ce comportement avec la version 3.2.0

Je constate que des sujets d’une catégorie mise en sourdine apparaissent dans les e-mails de résumé (sous Sujets populaires). Existe-t-il des paramètres spécifiques à configurer pour éviter que cela ne se produise ?

Par exemple, la catégorie Commentaires du site est mise en sourdine, mais je vois toujours des sujets de cette catégorie être envoyés dans les e-mails de résumé.

Il existe également le paramètre d’administration digest suppress categories, qui semble pouvoir être utile ici :

1 « J'aime »

C’est également activé, il continue d’envoyer des sujets de cette catégorie.

Hmm. Je crains de ne pas pouvoir reproduire cela sur mon site de test. Si j’ajoute une catégorie à digest_suppress_categories, elle ne s’affiche pas dans mon résumé d’activité, et si je la supprime, elle s’affiche alors.

Comment puis-je aider à déboguer cela ? Les e-mails récapitulatifs affichent des sujets de catégories mises en sourdine pour certains utilisateurs.
Une chose que j’ai remarquée, c’est qu’un de ces utilisateurs ne s’est pas connecté au site depuis très longtemps (disons 9 mois), les sujets envoyés par e-mail aux utilisateurs ont été créés entre le moment où l’utilisateur s’est connecté pour la dernière fois au site et le moment où le sujet a été initialement créé.

Dernière connexion de l’utilisateur → il y a 9 mois
Sujet créé → il y a 6 mois
Catégorie mise en sourdine → il y a 4 mois