Richie
(Richie Rich)
1
Discourse 3.5.0.beta3-dev (afde7cc172).
The link counter displayed at the bottom of a topic seems to stop at 50, even when there are over 1,000 links in the thread:
For reference:
On another topic, this one also says 50:
When there are 250+ links:
Does anyone know what might be causing this? 
2개의 좋아요
pfaffman
(Jay Pfaffman)
2
Without looking at the code, I think that number probably comes from topic_links, so something like
select * from topic_links where topic_id=1234
It does seem like a bug, though.
3개의 좋아요
Richie
(Richie Rich)
3
Interesting, hadn’t spotted that table.
If this helps, there are 4,155 links in this topic id yet it says 50x on the front end:
pfaffman
(Jay Pfaffman)
4
Sounds like a bug. Maybe share the link. Maybe look in the code.
Looks like it’s limited to 50 on purpose; I guess that it’s a complicated join and having it do hundreds or thousands would be a performance issue.
4개의 좋아요
Richie
(Richie Rich)
5
흠 
확인해 주셔서 감사합니다 @pfaffman
전혀 부정확한 숫자를 최종 사용자에게 표시해야 하는 이유를 모르겠어요 
정보가 없는 것이 부정확한 정보보다 낫습니다.
이 잘못된 숫자를 완전히 제거하지 않고도 적용할 수 있는 간단한 해결책이 하나 있습니다.
Contribute > UX 채널에 제안을 올려볼게요 
1개의 좋아요
sam
(Sam Saffron)
6
Yeah this lives between bug and ux.
On one hand it only impacts the UI of Discourse, on the other hand it is buggy to show a number that we know is not correct.
I think the simplest fix on our side is to select 51 and then show the text “50+” in the UI if we get 51.
It feels in the realm of pr-welcome, but I will leave @lindsey to triage and decide.
sam
(Sam Saffron)
7
Oh I see:
So I guess we take it up there.