]> git.mxchange.org Git - friendica.git/commitdiff
use jsonexit
authorMichael <heluecht@pirati.ca>
Sat, 9 Apr 2022 03:41:24 +0000 (03:41 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 9 Apr 2022 03:41:24 +0000 (03:41 +0000)
src/Module/ActivityPub/Featured.php

index 33aabf3a858c0e8cd53004facaf8d32546a92c9b..af5a3d317a8750d2c23dd26eb42e868a0c5ecd33 100644 (file)
@@ -22,6 +22,7 @@
 namespace Friendica\Module\ActivityPub;
 
 use Friendica\BaseModule;
+use Friendica\Core\System;
 use Friendica\Model\User;
 use Friendica\Protocol\ActivityPub;
 
@@ -44,8 +45,6 @@ class Featured extends BaseModule
                $page = $_REQUEST['page'] ?? null;
 
                $outbox = ActivityPub\Transmitter::getFeatured($owner, $page);
-               header('Content-Type: application/activity+json');
-               echo json_encode($outbox);
-               exit();
+               System::jsonExit($outbox, 'application/activity+json');
        }
 }