mirror of
https://github.com/discourse/discourse.git
synced 2025-02-23 02:09:55 +08:00

Followup to 9762e6575841889d50275cb6026e4482d8091857. This original commit did not take into account the fact that new topics can end up in the approval queue as a ReviewableQueuedPost, and so there was a 500 error raised when accessing `self.topic` when sending a PM to the user.