# 게시글 작성자가 삭제된 경우 삭제된 게시물 페이지에서 제목이 표시되지 않음

**URL:** https://meta.discourse.org/t/topic-titles-missing-from-deleted-posts-page-when-op-is-deleted/233350
**Category:** Bug
**Created:** [7월 19, 2022, 11:49오후 UTC](https://meta.discourse.org/t/topic-titles-missing-from-deleted-posts-page-when-op-is-deleted/233350 "2022-07-19T23:49:12Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![MarkDoerr](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/markdoerr/32/549630_2.png) [@MarkDoerr](https://meta.discourse.org/u/MarkDoerr)
#### Post date: [7월 19, 2022, 11:49오후 UTC](https://meta.discourse.org/t/topic-titles-missing-from-deleted-posts-page-when-op-is-deleted/233350/1 "2022-07-19T23:49:12Z")

</div>

관리자는 `/u/username/deleted-posts`에서 삭제된 사용자 게시글 목록을 확인할 수 있습니다. 목록에 표시된 게시글에는 해당 게시글이 속한 주제의 제목(해당 게시글로 링크)과 주제가 포함된 카테고리 링크가 포함될 것으로 기대됩니다. 그러나 관련 주제의 주제 게시글(OP)이 삭제된 경우, 해당 삭제된 게시글과 삭제된 답글이 제목 및 카테고리 링크 없이 목록에 표시되는 문제를 발견했습니다. 코드상으로는 모든 경우에 제목과 카테고리가 표시되어야 하는 것으로 보입니다.

OP가 삭제된 경우와 OP가 여전히 존재하는 경우에 주제 제목이 어떻게 표시되는지 보여주는 예시는 다음과 같습니다:

 ![2022-07-18_deleted_posts](https://global.discourse-cdn.com/meta/original/4X/f/1/2/f1216662870fd7924b3e47ee61bfe7efcf6ceac5.png)

해당 페이지의 코드는 다음에서 가져옵니다:  
[https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/templates/components/user-stream-item.hbs](https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/templates/components/user-stream-item.hbs)

그리고 `postUrl`의 평가는 다음 106번째 줄에서 이루어지는 것으로 보입니다:

[https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/lib/utilities.js](https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/lib/utilities.js)

필요한 경우, 로그를 통해 삭제된 게시글의 콘텐츠에 여전히 접근할 수 있습니다:

 ![2022-07-18_deleted_posts_logs](https://global.discourse-cdn.com/meta/original/4X/e/8/0/e80665e24e82235bc5c482e69c4162eea9ef1f26.png)

---

<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월 13, 2022, 7:33오후 UTC](https://meta.discourse.org/t/topic-titles-missing-from-deleted-posts-page-when-op-is-deleted/233350/3 "2022-10-13T19:33:12Z")

</div>

참고로, 이 문제는 최근 다른 주제에서도 발생했습니다 -

> [@Mohan43u](#):
>
> 제가 잘못 시도하고 있는지 알려주세요

---

<div class="post-metadata">

### Author: ![rahim123](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@rahim123](https://meta.discourse.org/u/rahim123)
#### Post date: [12월 2, 2022, 12:49오후 UTC](https://meta.discourse.org/t/topic-titles-missing-from-deleted-posts-page-when-op-is-deleted/233350/4 "2022-12-02T12:49:59Z")

</div>

여기서도 동일한 문제가 발생합니다:

> [@삭제된 게시물을 찾는 방법](https://meta.discourse.org/t/how-to-find-deleted-posts/134424/12?u=rahim123):
>
> Hi there, Is there any way to see all of the deleted replies in the forum without resorting to SQL queries? The /latest?status=deleted flag only shows deleted topics. Also, in the user /u/XXXXXX/deleted-posts section, deleted topics have no title link, making it impossible to visit the entire thread or un-delete it from there. Is there something I’m not understanding or should I file a bug report? Additionally, it would be nice to have an un-delete butt…

---

<div class="post-metadata">

### Author: ![nat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nat/32/235063_2.png) [@nat](https://meta.discourse.org/u/nat)
#### Post date: [12월 28, 2022, 4:24오후 UTC](https://meta.discourse.org/t/topic-titles-missing-from-deleted-posts-page-when-op-is-deleted/233350/7 "2022-12-28T16:24:14Z")

</div>

수정 사항을 병합했습니다. 보고해 주셔서 감사합니다

> <https://github.com/discourse/discourse/pull/19610>
>
> https://meta.discourse.org/t/topic-titles-missing-from-deleted-posts-page-when-o…p-is-deleted/233350
> 
> \`/u/\\\<username\>/deleted-posts\` weren't showing topic titles because sadly \`Topic.unscoped\` still didn't allow posts with deleted topics to associate properly. Undoing https://github.com/discourse/discourse/pull/17329 to allow it.
> 
> Before
> \<img width="459" alt="Screenshot 2022-12-23 at 11 00 00 PM" src="https://user-images.githubusercontent.com/1555215/209356395-57c62b7b-d6c3-4f81-82c2-f99706bae90c.png"\>
> 
> 
> After
> \<img width="459" alt="Screenshot 2022-12-23 at 11 00 27 PM" src="https://user-images.githubusercontent.com/1555215/209356410-74683f02-1e47-44ea-8486-00e922f5c4ff.png"\>

---

<div class="post-metadata">

### Author: ![nat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nat/32/235063_2.png) [@nat](https://meta.discourse.org/u/nat)
#### Post date: [12월 31, 2022, 12:00오전 UTC](https://meta.discourse.org/t/topic-titles-missing-from-deleted-posts-page-when-op-is-deleted/233350/8 "2022-12-31T00:00:49Z")

</div>

이 주제는 2일 후 자동으로 닫혔습니다. 더 이상 답변을 할 수 없습니다.
