ミュートされたカテゴリのトピックが要約メールに表示されないようにする

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 にカテゴリを追加してもアクティビティサマリーに表示されず、削除すると表示されるようになります。

これをデバッグするために何ができますか?ダイジェストメールに、一部のユーザーのミュートされたカテゴリのトピックが表示されています。
気づいたことの1つは、これらのユーザーのうちの1人がサイトに非常に長い間(9か月としましょう)ログインしていないことです。ユーザーに送信されたトピックのメールは、ユーザーが最後にサイトにログインした時間とトピックが最初に作成された時間の間に作成されました。

ユーザーの最終ログイン → 9か月前
トピック作成 → 6か月前
カテゴリミュート → 4か月前