Error 500 when editing the "closed topic" post

I just tried reproducing this on try.discourse.org, and couldn’t. Here’s exactly what I did:

  • Signed up as a new user
  • Created a new topic (https://try.discourse.org/t/this-is-a-test-topic/455)
  • Made myself an admin (since new users can’t close topics), via rake admin:create (rank hath its privileges)
  • Reloaded the topic page
  • Closed the topic via the newly-appeared wrench on the right
  • Clicked the “Edit” pencil on the right hand side of the “Closed 1 min ago” post
  • Put some text in
  • Clicked “Save”

No errors were reported, and no HTTP responses with a 5xx status code are in the logs for try.

What steps did you do differently to make the problem happen?