mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 01:25:53 +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`.