# 주제 링크 카운터가 50에서 멈춥니다

**URL:** https://meta.discourse.org/t/topic-link-counter-stops-at-50/359412
**Category:** Bug
**Created:** [3월 29, 2025, 9:47오전 UTC](https://meta.discourse.org/t/topic-link-counter-stops-at-50/359412 "2025-03-29T09:47:45Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Richie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/richie/32/115110_2.png) [@Richie](https://meta.discourse.org/u/Richie)
#### Post date: [3월 29, 2025, 9:47오전 UTC](https://meta.discourse.org/t/topic-link-counter-stops-at-50/359412/1 "2025-03-29T09:47:45Z")

</div>

Discourse 3.5.0.beta3-dev ([afde7cc172](https://github.com/discourse/discourse/commits/afde7cc1727a751e4d87be2ceee17f2d82edf89c)).

토픽 하단에 표시되는 링크 카운터가 스레드에 1,000개 이상의 링크가 있음에도 불구하고 50에서 멈추는 것 같습니다:

 ![Screenshot 2025-03-29 at 09.38.20](https://global.discourse-cdn.com/meta/original/4X/2/4/c/24c47327f0f42e6173fd6f5743bf99e21bd84c57.png)

참고로:

 ![Screenshot 2025-03-29 at 09.45.27](https://global.discourse-cdn.com/meta/original/4X/0/7/0/0708edaa890ad215738f6d0080d42bb353504f47.png)

다른 토픽에서도 이 경우에도 50이라고 표시됩니다:

 ![Screenshot 2025-03-29 at 09.46.07](https://global.discourse-cdn.com/meta/original/4X/3/5/9/359ec69709b3bb0f163fef453a504d000c492f65.png)

링크가 250개 이상인 경우:

 ![Screenshot 2025-03-29 at 09.46.19](https://global.discourse-cdn.com/meta/original/4X/4/1/a/41a54fa7629aff074e22e7c0cdd894c45a053820.png)

이것이 어떤 원인 때문인지 아는 분이 있을까요? 🤔

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [3월 29, 2025, 9:41오후 UTC](https://meta.discourse.org/t/topic-link-counter-stops-at-50/359412/2 "2025-03-29T21:41:52Z")

</div>

코드를 확인하지 않았지만, 그 숫자는 아마 `topic_links`에서 나오는 것 같습니다. 그래서 다음과 같은 쿼리일 수 있겠네요.

```plaintext
select * from topic_links where topic_id=1234

```

다만, 버그인 것 같기는 합니다.

---

<div class="post-metadata">

### Author: ![Richie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/richie/32/115110_2.png) [@Richie](https://meta.discourse.org/u/Richie)
#### Post date: [3월 30, 2025, 10:09오전 UTC](https://meta.discourse.org/t/topic-link-counter-stops-at-50/359412/3 "2025-03-30T10:09:20Z")

</div>

흥미롭네요. 그 테이블을 못 봤네요.

도움이 된다면, 이 토픽 ID에는 4,155개의 링크가 있지만 프론트엔드에는 50x라고 표시되어 있습니다:

 ![Screenshot 2025-03-30 at 11.08.07](https://global.discourse-cdn.com/meta/original/4X/9/c/3/9c3855b28f47afe86bfbe83e03959e313ae4bb10.png)

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [3월 30, 2025, 2:45오후 UTC](https://meta.discourse.org/t/topic-link-counter-stops-at-50/359412/4 "2025-03-30T14:45:15Z")

</div>

~~버그인 것 같습니다. 링크를 공유해 보세요. 코드를 살펴보는 것도 좋습니다.~~

의도적으로 50개로 제한된 것 같습니다. 복잡한 조인(join)이라 수백 개나 수천 개를 처리하면 성능 문제가 발생할 수 있기 때문이겠죠.

> <https://github.com/discourse/discourse/blob/main/app/models/topic_link.rb#L37-L55>

---

<div class="post-metadata">

### Author: ![Richie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/richie/32/115110_2.png) [@Richie](https://meta.discourse.org/u/Richie)
#### Post date: [3월 30, 2025, 3:44오후 UTC](https://meta.discourse.org/t/topic-link-counter-stops-at-50/359412/5 "2025-03-30T15:44:57Z")

</div>

흠 🤔

확인해 주셔서 감사합니다 @pfaffman

전혀 부정확한 숫자를 최종 사용자에게 표시해야 하는 이유를 모르겠어요 🤷

정보가 없는 것이 부정확한 정보보다 낫습니다.

이 잘못된 숫자를 완전히 제거하지 않고도 적용할 수 있는 간단한 해결책이 하나 있습니다.

#Contribute > UX 채널에 제안을 올려볼게요 😁

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [3월 31, 2025, 5:41오전 UTC](https://meta.discourse.org/t/topic-link-counter-stops-at-50/359412/6 "2025-03-31T05:41:50Z")

</div>

음, 이건 버그와 UX 사이에 있는 문제네요.

한편으로는 Discourse의 UI에만 영향을 미치지만, 다른 한편으로는 우리가 이미 정확하지 않다는 걸 알고 있는 숫자를 표시하는 건 버그라고 할 수 있습니다.

우리가 할 수 있는 가장 간단한 수정 방법은 51을 선택한 뒤, 51이 반환되면 UI에 "50+"라는 텍스트를 표시하는 것입니다.

#pr-welcome 범주에 해당한다고 느끼지만, @lindsey에게 분류와 결정을 맡기겠습니다.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [3월 31, 2025, 5:43오전 UTC](https://meta.discourse.org/t/topic-link-counter-stops-at-50/359412/7 "2025-03-31T05:43:51Z")

</div>

아, 알겠습니다:

> [@부정확한 링크 카운터 값 수정 제안](https://meta.discourse.org/t/suggestion-for-fixing-the-inaccurate-link-counter-value/359527):
>
> 버그인 줄 알았던 것이 사실은 의도된 설계라는 점을 추가로 말씀드리면, 토픽 링크 카운터가 50에서 멈추는 문제가 있습니다: 토픽에 수천 개의 링크가 있더라도 pensive_face 그리고: 이 점을 고려할 때, 사용자에게 부정확한 숫자를 표시하는 대신 토픽에 50개 이상의 링크가 있는 경우 단순히 + 기호를 표시할 수는 없을까요? 예를 들어, 이 경우: 다음과 같이 단순히 50+로 표시되면 됩니다: 이렇게 하면 사용자에게 부정확한 정보를 제공하지 않게 됩니다 thinking

그럼 거기서 이 문제를 다뤄야겠네요.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [3월 31, 2025, 5:44오전 UTC](https://meta.discourse.org/t/topic-link-counter-stops-at-50/359412/8 "2025-03-31T05:44:06Z")

</div>


