X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fapitimelinefavorites.php;h=7e8dd7aad6e6bb0fefb058acb9dc111961072bdc;hb=24e05350011eb1b4aa05c7cfa2b9e901bd7f9c2f;hp=36fc3089f52d968ac6cd5edc9710fd4849133428;hpb=0632d4f20c14a55b99d20fd394c340004d12c92b;p=quix0rs-gnu-social.git diff --git a/actions/apitimelinefavorites.php b/actions/apitimelinefavorites.php index 36fc3089f5..7e8dd7aad6 100644 --- a/actions/apitimelinefavorites.php +++ b/actions/apitimelinefavorites.php @@ -34,8 +34,6 @@ if (!defined('STATUSNET')) { exit(1); } -require_once INSTALLDIR.'/lib/apibareauth.php'; - /** * Returns the 20 most recent favorite notices for the authenticating user or user * specified by the ID parameter in the requested format. @@ -170,7 +168,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 +176,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; }