관리자는 /u/username/deleted-posts에서 삭제된 사용자 게시글 목록을 확인할 수 있습니다. 목록에 표시된 게시글에는 해당 게시글이 속한 주제의 제목(해당 게시글로 링크)과 주제가 포함된 카테고리 링크가 포함될 것으로 기대됩니다. 그러나 관련 주제의 주제 게시글(OP)이 삭제된 경우, 해당 삭제된 게시글과 삭제된 답글이 제목 및 카테고리 링크 없이 목록에 표시되는 문제를 발견했습니다. 코드상으로는 모든 경우에 제목과 카테고리가 표시되어야 하는 것으로 보입니다.
OP가 삭제된 경우와 OP가 여전히 존재하는 경우에 주제 제목이 어떻게 표시되는지 보여주는 예시는 다음과 같습니다:
해당 페이지의 코드는 다음에서 가져옵니다:
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
필요한 경우, 로그를 통해 삭제된 게시글의 콘텐츠에 여전히 접근할 수 있습니다:
3개의 좋아요
참고로, 이 문제는 최근 다른 주제에서도 발생했습니다 -
Mohan Raman:
제가 잘못 시도하고 있는지 알려주세요
2개의 좋아요
nat
(Natalie T)
12월 28, 2022, 4:24오후
7
수정 사항을 병합했습니다. 보고해 주셔서 감사합니다
main ← show-title-in-deleted
merged 08:07AM - 28 Dec 22 UTC
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">
5개의 좋아요
nat
(Natalie T)
에 닫힘
12월 31, 2022, 12:00오전
8
이 주제는 2일 후 자동으로 닫혔습니다. 더 이상 답변을 할 수 없습니다.