# 태그 페이지에 표시되는 태그 중 표시되는 토픽이 없는 경우

**URL:** https://meta.discourse.org/t/tags-page-showing-tags-with-no-visible-topics/248475
**Category:** Bug
**Created:** [12월 10, 2022, 12:31오후 UTC](https://meta.discourse.org/t/tags-page-showing-tags-with-no-visible-topics/248475 "2022-12-10T12:31:58Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [12월 10, 2022, 12:31오후 UTC](https://meta.discourse.org/t/tags-page-showing-tags-with-no-visible-topics/248475/1 "2022-12-10T12:31:58Z")

</div>

안녕하세요!

[https://meta.discourse.org/tags](https://meta.discourse.org/tags) 페이지에서 사용 중인 것으로 보이는 태그들이 몇 개 있습니다. 예를 들어:

[swag](https://meta.discourse.org/tag/swag) x 2  
또는  
[csreachout](https://meta.discourse.org/tag/csreachout) x 1

이 태그들은 빈 주제 목록으로 연결됩니다:

 ![image](https://global.discourse-cdn.com/meta/original/4X/7/c/4/7c4aeaf3aca3e1d1b1b31c88a7d184a2f2c4ba17.png)

이것이 버그인가요, 아니면 일부 태그 통계가 아직 업데이트되지 않은 것인가요 (Sidekiq 작업 등을 기다리는 중)?

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [12월 10, 2022, 12:37오후 UTC](https://meta.discourse.org/t/tags-page-showing-tags-with-no-visible-topics/248475/2 "2022-12-10T12:37:43Z")

</div>

태그가 비공개 카테고리의 주제 존재를 노출시키고 있다고 생각합니다.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [12월 10, 2022, 12:42오후 UTC](https://meta.discourse.org/t/tags-page-showing-tags-with-no-visible-topics/248475/3 "2022-12-10T12:42:03Z")

</div>

좋은 지적 감사합니다 @Canapin 👍

네, 태그별 토픽 수가 표시되어서는 안 되는 상황에서 실제로 표시되고 있는 것 같습니다. 이 문제를 #Contribute > Bug 채널로 넘기겠습니다.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [2월 2, 2023, 5:55오전 UTC](https://meta.discourse.org/t/tags-page-showing-tags-with-no-visible-topics/248475/8 "2023-02-02T05:55:37Z")

</div>

이 문제는 다음과 같이 수정된 것 같습니다: 👍

> <https://github.com/discourse/discourse/pull/19916>
>
> \## What is the problem here? 
> 
> Currently, \`Tag#topic\_count\` is a count of all …regular topics regardless of whether the topic is in a read restricted category or not. As a result, any users can technically poll a sensitive tag to determine if a new topic is created in a category which the user has not excess to. We classify this as a minor leak in sensitive information.
> 
> \## What does this PR change? 
> 
> 1. Introduce \`Tag#public\_topic\_count\` which only count topics which have been tagged with a given tag in public categories.
> 2. Rename \`Tag#topic\_count\` to \`Tag#staff\_topic\_count\` which counts the same way as \`Tag#topic\_count\`. In other words, it counts all topics tagged with a given tag regardless of the category the topic is in. The rename is also done so that we indicate that this column contains sensitive information. 
> 3. Change all previous spots which relied on \`Topic#topic\_count\` to rely on \`Tag.topic\_column\_count(guardian)\` which will return the right "topic count" column to use based on the current scope. 
> 4. Introduce \`SiteSetting.include\_secure\_categories\_in\_tag\_counts\` site setting to allow site administrators to always display the tag topics count using \`Tag#staff\_topic\_count\` instead.
> 
> \## Notes for reviewer
> 1. It is easier to follow this PR if you follow the commits in the order they were made.
> 1. This was discussed internally and our objective here is not to display the count as accurately as possible. Making the count accurate for all users is complicated to do and we're not ready to make that investment at this point in time.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [2월 6, 2023, 8:00오전 UTC](https://meta.discourse.org/t/tags-page-showing-tags-with-no-visible-topics/248475/10 "2023-02-06T08:00:16Z")

</div>

이 주제는 4일 후 자동으로 닫혔습니다. 더 이상 새 답변을 작성할 수 없습니다.
