5026: Timestamp in email not showing for the first reply of a comment

raymond.lam

What version are you running?

6.0.2

What's the URL of the page containing the problem?

N/A

What steps will reproduce the problem?

  1. Go to any review, create a comment
  2. Puhlish the changes
  3. Go to that comment and leave a reply
  4. Look at the email sent with that reply

What is the expected output? What do you see instead?

Expected:
An email header with:
On July 12th, 2024, 3:59 a.m. UTC, Raymond Lam wrote

Actual:
On , Raymond Lam wrote:

Timestamp is missing for the first reply

What operating system are you using? What browser?

MacOS (14.5), Chrome

Please provide any additional information below.

  • After poking around at the templated HTML (reply_email_content.html) I noticed:
{% for entry in comment_entries %}
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
 <p style="margin-top: 0;">On {{review.time_emailed|date:"F jS, Y, P T"}}, <strong>{{review.user|user_displayname}}</strong> wrote:</p>
 <blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">

When I changed review.time_emailed to reply.comment.timestamp the bug is fixed.

raymond.lam
#1 raymond.lam

Nvm, I think this was an issue with internal stuff, this can be closed MY BAD