X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fapitimelineretweetedtome.php;h=85f52f7388f88c27314534c8c1736b6a4587b74d;hb=c075b9f73068066897f2d42cdbcf1be1bf812380;hp=628dc402474fa9137f540dda30acf436a121ac37;hpb=b7178d2197d225b5fcb605b1c4d9df14d8b278a1;p=quix0rs-gnu-social.git diff --git a/actions/apitimelineretweetedtome.php b/actions/apitimelineretweetedtome.php index 628dc40247..85f52f7388 100644 --- a/actions/apitimelineretweetedtome.php +++ b/actions/apitimelineretweetedtome.php @@ -31,8 +31,6 @@ if (!defined('STATUSNET')) { exit(1); } -require_once INSTALLDIR . '/lib/apiauth.php'; - /** * Show most recent notices that are repeats in user's inbox * @@ -138,7 +136,7 @@ class ApiTimelineRetweetedToMeAction extends ApiAuthAction 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'); @@ -146,7 +144,7 @@ class ApiTimelineRetweetedToMeAction extends ApiAuthAction $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; }