게시글 작업 항목을 펼치면 좋아요를 누른 사람이 표시되지만 실제로는 아무도 좋아요를 누르지 않았습니다

Hi,

What happens

On Meta when I press the thee dots to expand the post action menu, although nobody has liked my post, it shows the text as you can see in the picture.


What should happen is that when you go to expand the menu, if nobody has liked the post the text shouldn’t show.

5개의 좋아요

I looked at it and it’s related to a recent PR (yesterday): A11Y: read who liked/read a post when count clicked (#31549) · discourse/discourse@5312550 · GitHub


A quick test shows the issue is here.
The users array should be tested against its length.
https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/components/small-user-list.gjs#L45-L47

4개의 좋아요

Yikes good catch, we will get this sorted this week

2개의 좋아요

Thanks! will be fixed by FIX: only show small user list if users has length by awesomerobot · Pull Request #31631 · discourse/discourse · GitHub

3개의 좋아요