mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 14:07:30 +08:00

Prior to this fix, if the last message of a thread had been made by a deleted user it would cause an exception as we would have no user to display, this commit uses a solution we have been using at other places: the null pattern, through the use of `Chat::NullUser.new`.