]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/apitimelinegroup.php
ActivityStreamJSONDocument served as application/stream+json
[quix0rs-gnu-social.git] / actions / apitimelinegroup.php
index 3fc930fa08664630a01972676875ba7888d5a466..136d41bb99186c417a6fccfc4a36f5f37adbd238 100644 (file)
@@ -135,7 +135,7 @@ class ApiTimelineGroupAction 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($atom->title);
             $doc->addLink($link, 'alternate', 'text/html');