X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fapitimelinetag.php;h=31e18cf8ee8d28aa00da47fba7970405d4f57736;hb=a0e107f17f27bc1dfc49de2a4493a461213e782e;hp=5fa76d0cd08659e8b5cfc5b1975dc7111e4b57f8;hpb=68017392ffd35ce93defb4600a17f9d7203b753f;p=quix0rs-gnu-social.git diff --git a/actions/apitimelinetag.php b/actions/apitimelinetag.php index 5fa76d0cd0..31e18cf8ee 100644 --- a/actions/apitimelinetag.php +++ b/actions/apitimelinetag.php @@ -153,7 +153,7 @@ class ApiTimelineTagAction extends ApiPrivateAuthAction $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'); @@ -161,7 +161,7 @@ class ApiTimelineTagAction extends ApiPrivateAuthAction $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; }