diff --git a/src/BirdsiteLive/Controllers/UsersController.cs b/src/BirdsiteLive/Controllers/UsersController.cs index 753a141..9d8f7d2 100644 --- a/src/BirdsiteLive/Controllers/UsersController.cs +++ b/src/BirdsiteLive/Controllers/UsersController.cs @@ -80,7 +80,10 @@ namespace BirdsiteLive.Controllers { if (user == null) return NotFound(); var apUser = _userService.GetUser(user); - var jsonApUser = JsonConvert.SerializeObject(apUser); + var jsonApUser = JsonConvert.SerializeObject(apUser, new JsonSerializerSettings + { + NullValueHandling = NullValueHandling.Ignore + }); return Content(jsonApUser, "application/activity+json; charset=utf-8"); } }