삭제된 사용자에게 전송된 이메일에 Ruby 해시 구문이 표시됩니다

사용자가 첫 게시물을 거부(reject)하여 삭제된 경우, Your account has been deleted이라는 제목의 이메일이 전송됩니다.

이메일 본문/콘텐츠에 버그가 있으며, 이메일 중간 부분에 Ruby 해시(hash) 문법이 표시되는 것으로 보입니다:


사용자가 수신하는 이메일의 포맷을 보여주는 스크린샷입니다:


재현 단계:

  1. Discourse에서 모든 사용자의 첫 게시물이 승인되도록 설정되어 있는지 확인합니다.
  2. 새 사용자를 생성합니다.
  3. 새 사용자로 새 게시물을 생성합니다.
  4. 관리자 계정을 사용하여 “Delete user” 옵션으로 게시물을 거부(reject)합니다.
  5. 새 사용자에게 위 내용과 함께 이메일이 전송됩니다.
2개의 좋아요

If it helps, a couple of screen shots from the admin view of the rejected post:

Before deleting the user:

After rejection and deletion:

1개의 좋아요

게시물이 새 주제로 분리되었습니다: Fix deleted user email handling for staged users

This looks like a bug in how flag_reason is generated here:

PostActionTypeView.new.types doesn’t include :needs_approval flag (which gets created in the flow described). Because of this, the translation key resolves to flag_reasons. (with no suffix), which returns the entire YAML section instead of a single entry. That’s why there is a Ruby hash in place of the flag reason.

Relatedly, this likely impacts custom flags as well, since their translations would also be missing.

7개의 좋아요

I am sure it does. I mentioned that in May

3개의 좋아요

OP에서 언급된 문제에 대한 수정 사항을 병합했습니다. 수정이 완료될 때까지 추적을 용이하게 하기 위해 스테이징된 사용자와 관련된 보고서를 별도의 토픽으로 이동했습니다.

1개의 좋아요