]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/apitimelineretweetsofme.php
ActivityStreamJSONDocument served as application/stream+json
[quix0rs-gnu-social.git] / actions / apitimelineretweetsofme.php
index d38e730ac6649c9d36d1ae0f5bba53bbd18af5e4..03137e7a9a09d26dc4746b301d84b7a8176f9977 100644 (file)
@@ -137,7 +137,7 @@ class ApiTimelineRetweetsOfMeAction extends ApiAuthAction
             $this->raw($atom->getString());
             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');