]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Outbox.php
Fix: The "extid" field wasn't updated
[friendica.git] / src / Module / Outbox.php
index 265c130b189d03aae415a096abf2517f3643eeb1..6e095b730671d3d18f8ce91123b0b4931b72e13f 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
 namespace Friendica\Module;
 
 use Friendica\BaseModule;
-use Friendica\Core\System;
 use Friendica\DI;
 use Friendica\Model\User;
 use Friendica\Protocol\ActivityPub;
+use Friendica\Util\HTTPSignature;
 
 /**
  * ActivityPub Outbox
@@ -48,11 +48,8 @@ class Outbox extends BaseModule
 
                $page = $_REQUEST['page'] ?? null;
 
-               /// @todo Add Authentication to enable fetching of non public content
-               // $requester = HTTPSignature::getSigner('', $_SERVER);
-
-               $outbox = ActivityPub\Transmitter::getOutbox($owner, $page);
-
+               $requester = HTTPSignature::getSigner('', $_SERVER);
+               $outbox = ActivityPub\Transmitter::getOutbox($owner, $page, $requester);
                header('Content-Type: application/activity+json');
                echo json_encode($outbox);
                exit();