# 리뷰 대기열 검토 시 게시글 본문이 중복으로 표시되는 것 같습니다

**URL:** https://meta.discourse.org/t/review-of-review-queue-seems-to-show-duplicated-post-bodies/279819
**Category:** Bug
**Tags:** review-queue
**Created:** [9월 22, 2023, 7:22오후 UTC](https://meta.discourse.org/t/review-of-review-queue-seems-to-show-duplicated-post-bodies/279819 "2023-09-22T19:22:20Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Philip\_Montgomery](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/philip_montgomery/32/313171_2.png) [@Philip\_Montgomery](https://meta.discourse.org/u/Philip_Montgomery)
#### Post date: [9월 22, 2023, 7:22오후 UTC](https://meta.discourse.org/t/review-of-review-queue-seems-to-show-duplicated-post-bodies/279819/1 "2023-09-22T19:22:20Z")

</div>

저희는 소규모/중규모 트래픽을 받는 공개 포럼을 운영 중이며, 사용자가 작성한 첫 번째 게시물이 게시되기 전에 검토를 거치도록 설정해 두었습니다. (이 요구 사항을 추가하기 전에는 성가실 정도로 많은 스팸이 유입되었습니다.)

어쨌든, 모더레이터 중 한 명이 버그로 보이는 문제를 보고했습니다.  
검토 대기열에 메시지가 두 개 있을 때, 두 번째 메시지를 살펴보면 첫 번째 메시지와 내용이 동일한 것처럼 보입니다. 그러나 실제로 두 번째 메시지를 열람하면 본문이 다릅니다.

(그녀는 사람들이 새 계정을 만들어 같은 메시지를 반복적으로 게시하고 있다고 생각하여, UI가 실제 작성된 내용을 표시하지 않는다는 사실을 깨달을 때까지 후속 게시물을 한동안 차단해 두었습니다.)

이것은 버그로 보입니다. 맞나요?

포럼에서 신규 사용자는 이미지만 한 장 게시할 수 있다고 안내하고 있기 때문에, 그녀가 추가 메시지로 확인한 내용을 강조한 스크린샷을 첨부합니다.

감사합니다.

---

<div class="post-metadata">

### Author: ![Philip\_Montgomery](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/philip_montgomery/32/313171_2.png) [@Philip\_Montgomery](https://meta.discourse.org/u/Philip_Montgomery)
#### Post date: [9월 22, 2023, 7:24오후 UTC](https://meta.discourse.org/t/review-of-review-queue-seems-to-show-duplicated-post-bodies/279819/4 "2023-09-22T19:24:55Z")

</div>

올바른 첫 번째 게시물의 스크린샷:

 ![Screenshot 2023-09-21 at 11.09.32 PM](https://global.discourse-cdn.com/meta/original/4X/9/1/2/9125f8e6f941fba5b63261c32aa4a0d28d26383d.png)

두 번째 게시물에서는 다른 사용자와 다른 제목이 표시되지만, 내용은 동일합니다.

 ![Screenshot 2023-09-21 at 11.09.47 PM](https://global.discourse-cdn.com/meta/original/4X/9/6/7/967652cc42b02c59f63244f085d36f7280ad1073.png)

…하지만 두 번째 메시지는 실제로는 잘못된 내용입니다. 메시지를 승인하고 확인해 보면 알 수 있습니다.

 ![Screenshot 2023-09-21 at 11.10.12 PM](https://global.discourse-cdn.com/meta/original/4X/a/b/2/ab223d5289ca6266aebea20a9052be44d4666f40.png)

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [9월 22, 2023, 9:18오후 UTC](https://meta.discourse.org/t/review-of-review-queue-seems-to-show-duplicated-post-bodies/279819/5 "2023-09-22T21:18:40Z")

</div>

혹시 관련이 있을지 모르겠지만, 문제를 발견한 관리자는 일반 관리자인가요, 아니면 "카테고리 관리자"인가요?

스크린샷은 분명히 문제가 있음을 시사합니다. 다만 아직 재현하지는 못했습니다. 문제에 대해 생각나는 추가적인 세부 정보가 있다면 도움이 될 것입니다.

수정: 아마 이것이 원인일 것 같습니다. 로컬 개발 사이트에서 테스트해보니, 신규 사용자의 두 개의 게시물이 검토 대기열에 있습니다. 검토 대기열에 직접 접근하는 대신, 알림 드롭다운에서 첫 번째 검토 항목을 클릭하면 다음과 같은 화면이 표시됩니다:

 ![image](https://global.discourse-cdn.com/meta/original/4X/5/8/b/58ba43db7d71dc4d013b163ed60df3c1aa075147.png)

 ![image](https://global.discourse-cdn.com/meta/original/4X/b/d/1/bd1c52d6308e019abb0c4ff7f0628a595e8ea6e2.png)

그 후 두 번째 알림을 클릭하면 다음과 같은 화면이 표시됩니다:

 ![image](https://global.discourse-cdn.com/meta/original/4X/9/0/9/90963e520c90ab8c445eb6b5ea1b887b671a75fc.png)

 ![image](https://global.discourse-cdn.com/meta/original/4X/d/2/5/d251df0b33ce39c6731162a876d5eb77900ea16c.png)

두 번째 알림을 클릭한 후, 검토 대기열의 항목 제목은 업데이트되지만, 게시물의 본문에는 이전 검토 항목의 텍스트 내용이 표시됩니다.

만약 검토 대기열 알림을 클릭하여 검토 항목으로 가는 대신, 사이드바의 “검토” 항목을 클릭하면 검토 항목이 올바르게 표시됩니다:

 ![image](https://global.discourse-cdn.com/meta/original/4X/2/3/9/239d66e699d8504d6b87e2a2bc106c4f59b305a1.png)

저는 이것이 버그라고 \_생각\_합니다. 잠정적으로 #Contribute > Bug 카테고리로 재분류합니다.

---

<div class="post-metadata">

### Author: ![ted](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ted/32/283882_2.png) [@ted](https://meta.discourse.org/u/ted)
#### Post date: [9월 29, 2023, 8:57오전 UTC](https://meta.discourse.org/t/review-of-review-queue-seems-to-show-duplicated-post-bodies/279819/9 "2023-09-29T08:57:25Z")

</div>

리포트 감사합니다, @Philip_Montgomery!

@simon 님의 뛰어난 조사 덕분에 이 문제를 빠르게 재현하고 수정할 수 있었습니다. 해당 수정이 이제 병합되었습니다:

> <https://github.com/discourse/discourse/pull/23709>
>
> \### What is the problem?
> 
> When navigating between renewables through the Ember… router, e.g. through the links in the notifications menu:
> 
> \<img width="236" alt="Screenshot 2023-09-29 at 9 58 30 AM" src="https://github.com/discourse/discourse/assets/5259935/5e44d885-51c5-42cb-8b12-0b43934a0af4"\>
> 
> the body of the reviewable (rendered by the \`CookText\` component) won't update, resulting in the same post body incorrectly being shown for all subsequent reviewables.
> 
> This is happening because there is no update path between the \`rawText\` attribute being passed to \`CookText\` and the computed \`cooked\` attribute, since this is being set explicitly using an async function.
> 
> \### How does this fix it?
> 
> This PR adds the missing link between \`rawText\` and \`cooked\` by listening for \`didUpdate\` and triggering the async function.
> 
> \### Verification
> 
> \*\*Before:\*\*
> 
> !\[reviewable-body-before\](https://github.com/discourse/discourse/assets/5259935/dd80ae21-8e1b-41d7-99d5-95e8a1be2ad2)
> 
> \*\*After:\*\*
> 
> !\[reviewable-body-after\](https://github.com/discourse/discourse/assets/5259935/94ca289e-ed9b-4399-bff6-2564fe5a081d)

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [10월 2, 2023, 7:00오전 UTC](https://meta.discourse.org/t/review-of-review-queue-seems-to-show-duplicated-post-bodies/279819/10 "2023-10-02T07:00:55Z")

</div>

이 주제는 2일 후 자동으로 닫혔습니다. 새로운 답변은 더 이상 허용되지 않습니다.
