# Unterdrückte Kategorie im Digest enthalten

**URL:** <https://meta.discourse.org/t/suppressed-category-included-in-digest/203304>\
**Category:** Bug\
**Tags:** activity-summary\
**Created:** [12. September 2021 um 10:22 UTC](https://meta.discourse.org/t/suppressed-category-included-in-digest/203304 "2021-09-12T10:22:21Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)\
**Post date:** [2. November 2021 um 14:35 UTC](https://meta.discourse.org/t/suppressed-category-included-in-digest/203304/6 "2021-11-02T14:35:51Z")

</div>

> [@simon](#):
>
> `topics = topics.where("topic_users.notification_level != ? OR topics.category_id NOT IN (?)", TopicUser.notification_levels[:muted], remove_category_ids)`

Ich denke, das Problem liegt darin, dass der Zielpnutzer dieses Thema bereits besucht hat und dafür ein Datensatz des Modells `TopicUser` angelegt wurde. Dadurch wird das Thema die oben genannte Bedingung erfüllen, bei der geprüft wird, ob es stummgeschaltet ist oder nicht. In diesem Fall sollte der folgende PR dieses Problem beheben.

> <https://github.com/discourse/discourse/pull/14793>
>
> Previously, suppressed category topics are included in the digest emails if the …user visited that topic before, and the \`TopicUser\` record is created with any notification level except 'muted'.

---

_[View the full topic](https://meta.discourse.org/t/suppressed-category-included-in-digest/203304)._
