mirror of
https://github.com/NicolasConstant/BirdsiteLive
synced 2025-06-05 21:49:16 +02:00
return gone on deleted state
This commit is contained in:
@ -116,7 +116,7 @@ namespace BirdsiteLive.Controllers
|
|||||||
{
|
{
|
||||||
if (isSaturated) return new ObjectResult("Too Many Requests") { StatusCode = 429 };
|
if (isSaturated) return new ObjectResult("Too Many Requests") { StatusCode = 429 };
|
||||||
if (notFound) return NotFound();
|
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 apUser = _userService.GetUser(user, dbUser);
|
||||||
var jsonApUser = JsonConvert.SerializeObject(apUser);
|
var jsonApUser = JsonConvert.SerializeObject(apUser);
|
||||||
return Content(jsonApUser, "application/activity+json; charset=utf-8");
|
return Content(jsonApUser, "application/activity+json; charset=utf-8");
|
||||||
|
Reference in New Issue
Block a user