# 소거된 카테고리가 다이제스트에 포함됨

**URL:** <https://meta.discourse.org/t/suppressed-category-included-in-digest/203304>\
**Category:** Bug\
**Tags:** activity-summary\
**Created:** [9월 12, 2021, 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:** 3

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [9월 13, 2021, 9:58오후 UTC](https://meta.discourse.org/t/suppressed-category-included-in-digest/203304/3 "2021-09-13T21:58:57Z")

</div>

> [@manuel](#):
>
> 선택하는 카테고리에 상관없이 suppress(무시) 기능이 작동하지 않습니다.

네, 저도 로컬 개발 사이트에서 테스트해 보았으며 동일한 문제를 발견했습니다. 이 문제의 원인은 여기서 사용되는 로직에 있는 것 같습니다:

> <https://github.com/discourse/discourse/blob/main/app/models/topic.rb#L515>

해당 줄을 `topics = topics.where("topics.category_id NOT IN (?)", remove_category_ids)`로 변경하면 `digest_suppress_categories` 설정에 추가된 카테고리에 대한 문제는 해결되는 것 같습니다. 하지만 음소거(muted) 카테고리를 처리하는 로직을 추가해야 합니다. 아마 다음과 같은 방식으로 처리할 수 있을 것입니다:

```plaintext
topics = topics.where("topics.category_id NOT IN (?)", remove_category_ids).where("topic_users.notification_level != (?)", TopicUser.notification_levels[:muted])

```

---

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