# 수정: 동일한 대상에 대해 플래그가 지정된 검토 가능 항목을 재사용할 때 승인 대기 중인 검토 가능 항목의 부활 방지

**URL:** https://meta.discourse.org/t/fix-prevent-resurrection-of-approved-queued-reviewables-when-reusing-flagged-reviewables-for-the-same-target/407852
**Category:** Bug
**Tags:** review-queue
**Created:** [7월 17, 2026, 2:34오전 UTC](https://meta.discourse.org/t/fix-prevent-resurrection-of-approved-queued-reviewables-when-reusing-flagged-reviewables-for-the-same-target/407852 "2026-07-17T02:34:14Z")
**Posts on this page:** 3
**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: [7월 17, 2026, 2:34오전 UTC](https://meta.discourse.org/t/fix-prevent-resurrection-of-approved-queued-reviewables-when-reusing-flagged-reviewables-for-the-same-target/407852/1 "2026-07-17T02:34:15Z")

</div>

다음 단계들을 생각해 보겠습니다:

1. 감시 단어(watched word)를 설정합니다.
2. 사용자가 감시 단어를 사용했고, 해당 토픽이 검토 대상(reviewables)에 포함됩니다.
3. 스태프가 토픽을 승인합니다.
4. 사용자가 해당 토픽을 신고(flag)합니다.

이 경우, "이 토픽 승인"에 대한 원래의 검토 대상 상태가 "승인됨"에서 "대기 중"으로 되돌아갈 수 있으며, 큐에 검토 대상이 두 개(승인/거부 여부가 차이를 만들지 않는 토픽 승인용과, 신고 처리용)가 생성될 수 있습니다. 이는 바람직한 상황이 아닙니다.

이 커밋은 상태가 되돌아가는 것을 방지하는 로직을 추가하고, 신고된 검토 대상만 유지하도록 하며, 이를 검증하기 위한 스펙도 함께 추가합니다.

> <https://github.com/discourse/discourse/pull/41790>
>
> For these steps:
> 
> 1. Set a watched word.
> 2. A user triggered watched word, an…d the topic fall into the reviewables.
> 3. A staff approved the topic.
> 4. The topic is flagged by a user.
> 
> Then the original reviewables of "Approving this topic" will change its status from "Approved" back to "Pending", and there will be two reviewables in the queue (one for approving this topic, which approve/reject won't make any difference, and another for dealing with the flag), which shouldn't be that case.
> 
> This commit add logic to prevent that from being changed back, keeping only the flagged reviewables, and some specs are also added to it.

---

<div class="post-metadata">

### Author: ![kris.kotlarek](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kris.kotlarek/32/176919_2.png) [@kris.kotlarek](https://meta.discourse.org/u/kris.kotlarek)
#### Post date: [7월 21, 2026, 1:58오전 UTC](https://meta.discourse.org/t/fix-prevent-resurrection-of-approved-queued-reviewables-when-reusing-flagged-reviewables-for-the-same-target/407852/5 "2026-07-21T01:58:45Z")

</div>

이 문제를 보고해 주시고 수정까지 해주셔서 감사합니다. 주말 전에 병합되었습니다 🤩

---

<div class="post-metadata">

### Author: ![kris.kotlarek](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kris.kotlarek/32/176919_2.png) [@kris.kotlarek](https://meta.discourse.org/u/kris.kotlarek)
#### Post date: [7월 21, 2026, 10:00오후 UTC](https://meta.discourse.org/t/fix-prevent-resurrection-of-approved-queued-reviewables-when-reusing-flagged-reviewables-for-the-same-target/407852/6 "2026-07-21T22:00:37Z")

</div>

이 주제는 20시간 후 자동으로 닫혔습니다. 더 이상 답변이 허용되지 않습니다.
