return gone on deleted state
This commit is contained in:
parent
8840d1007c
commit
1a939b6147
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ namespace BirdsiteLive.Controllers
|
|||
{
|
||||
if (isSaturated) return new ObjectResult("Too Many Requests") { StatusCode = 429 };
|
||||
if (notFound) return NotFound();
|
||||
if (dbUser != null && dbUser.Deleted) return NotFound();
|
||||
if (dbUser != null && dbUser.Deleted) return new ObjectResult("Gone") { StatusCode = 410 };
|
||||
var apUser = _userService.GetUser(user, dbUser);
|
||||
var jsonApUser = JsonConvert.SerializeObject(apUser);
|
||||
return Content(jsonApUser, "application/activity+json; charset=utf-8");
|
||||
|
|
Reference in a new issue