# 게시물이 숨겨진 상태에서 반응 카운터를 클릭하면 403 루프가 발생합니다

**URL:** https://meta.discourse.org/t/clicking-reaction-counter-will-encounter-403-loop-if-a-post-is-hidden/404053
**Category:** Bug
**Tags:** reactions
**Created:** [5월 29, 2026, 2:53오전 UTC](https://meta.discourse.org/t/clicking-reaction-counter-will-encounter-403-loop-if-a-post-is-hidden/404053 "2026-05-29T02:53:01Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![small-lovely-cat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/small-lovely-cat/32/553546_2.png) [@small-lovely-cat](https://meta.discourse.org/u/small-lovely-cat)
#### Post date: [5월 29, 2026, 2:53오전 UTC](https://meta.discourse.org/t/clicking-reaction-counter-will-encounter-403-loop-if-a-post-is-hidden/404053/1 "2026-05-29T02:53:01Z")

</div>

백엔드 `/discourse-reactions/app/controllers/discourse_reactions/custom_reactions_controller.rb`는 게시물이 숨겨진 경우 권한이 없는 사용자가 리액션을 로드하는 것을 방지하기 위해 `guardian.ensure_can_see!(post)`를 사용합니다.

그러나 프론트엔드에서는 여전히 리액션 카운터가 렌더링됩니다. 이로 인해 사용자가 숨겨진 게시물의 리액션 카운터를 클릭하면 `/discourse-reactions/posts/xxx/reactions-users-list.json`을 가져오는 동안 403 Forbidden 오류와 함께 무한 로딩이 발생합니다.

이 커밋은 프론트엔드에도 유사한 가드를 추가하여 `args.post.hidden && !args.post.can_see_hidden_post`일 때 리액션 카운터를 숨김으로써 이 문제를 수정합니다.

 ![595836870-87c39f7f-5b8b-4555-a877-fe74714e16ca](https://global.discourse-cdn.com/meta/original/4X/9/9/7/997294ab7bbc618801c5d3121bca466f5d682a85.png)  
PR: [FIX: reactions shouldn't be visible to users without see\_hidden\_post permission if a post is hidden - Pull Request #40216 - discourse/discourse - GitHub](https://github.com/discourse/discourse/pull/40216)

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [6월 8, 2026, 3:29오후 UTC](https://meta.discourse.org/t/clicking-reaction-counter-will-encounter-403-loop-if-a-post-is-hidden/404053/2 "2026-06-08T15:29:50Z")

</div>

감사합니다! 방금 병합했습니다.
