fix content type

This commit is contained in:
Nicolas Constant 2020-07-03 00:39:06 -04:00
parent 46c18de299
commit bdcd5493d9
No known key found for this signature in database
GPG key ID: 1E9F677FB01A5688

View file

@ -39,7 +39,7 @@ namespace BirdsiteLive.Controllers
{
var apUser = _userService.GetUser(user);
var jsonApUser = JsonConvert.SerializeObject(apUser);
return Content(jsonApUser, "application/json");
return Content(jsonApUser, "application/activity+json; charset=utf-8");
}
return View(user);
@ -64,7 +64,7 @@ namespace BirdsiteLive.Controllers
var status = _userService.GetStatus(user, tweet);
var jsonApUser = JsonConvert.SerializeObject(status);
return Content(jsonApUser, "application/json");
return Content(jsonApUser, "application/activity+json; charset=utf-8");
}
return View("Tweet", statusId);