X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fapitimelinefavorites.php;h=e2cb7c2ee2f8481221c42500b664959b2893d5e1;hb=5eba1030ae39038b7b6b0aad5de1043fae43e48d;hp=36fc3089f52d968ac6cd5edc9710fd4849133428;hpb=81bcdfe2be9607998b6b34499c499b47ad76b525;p=quix0rs-gnu-social.git diff --git a/actions/apitimelinefavorites.php b/actions/apitimelinefavorites.php index 36fc3089f5..e2cb7c2ee2 100644 --- a/actions/apitimelinefavorites.php +++ b/actions/apitimelinefavorites.php @@ -170,7 +170,7 @@ class ApiTimelineFavoritesAction extends ApiBareAuthAction $this->showJsonTimeline($this->notices); break; case 'as': - header('Content-Type: application/json; charset=utf-8'); + header('Content-Type: ' . ActivityStreamJSONDocument::CONTENT_TYPE); $doc = new ActivityStreamJSONDocument($this->auth_user); $doc->setTitle($title); $doc->addLink($link,'alternate', 'text/html'); @@ -178,7 +178,7 @@ class ApiTimelineFavoritesAction extends ApiBareAuthAction $this->raw($doc->asString()); break; default: - // TRANS: Client error displayed when trying to handle an unknown API method. + // TRANS: Client error displayed when coming across a non-supported API method. $this->clientError(_('API method not found.'), $code = 404); break; }