mirror of
https://github.com/discourse/discourse.git
synced 2025-03-16 05:45:35 +08:00

Apparently is is possible to have a user without a user_profile. This fix will return nil for any user_profile fields during serialization (like the after delete web hook) instead of blowing up.