阻止已静音类别的主题在摘要邮件中显示

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 个赞

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 个赞

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 个赞

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 个赞

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

2 个赞

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 个赞

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 个赞

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

4 个赞

@nbianca can you add that to your list?

2 个赞

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 个赞

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 个赞

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 个赞

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!

我确认在 3.2.0 版本中存在此行为。

我注意到来自“静音类别”的话题出现在“摘要”邮件(在“热门话题”下)。是否需要设置特定选项来防止这种情况发生?

例如,“站点反馈”类别已被静音,但我仍在摘要邮件中看到来自该类别的话题。

还有一个名为 digest suppress categories 的管理员设置,听起来在这里可能很有用:

1 个赞

该设置也已启用,它仍然会发送该类别的主题。

嗯。恐怕我无法在我的测试站点上重现此问题。如果我将一个类别添加到 digest_suppress_categories,它就不会显示在我的活动摘要中,如果我将其删除,它就会显示出来。

我该如何帮助调试这个问题?摘要邮件显示了某些用户已静音分类中的主题。
我注意到的一件事是,其中一位用户很长时间(例如 9 个月)没有登录过该网站了,发送给用户电子邮件的主题是在该用户上次登录网站和主题最初创建之间的时间段内创建的。

用户上次登录 → 9 个月前
主题创建 → 6 个月前
分类静音 → 4 个月前