mirror of
https://github.com/friendica/friendica
synced 2025-04-19 08:30:11 +00:00
Avoid a notice in HTTP signature check, preparation for authentication
This commit is contained in:
parent
b00481ce2b
commit
ae2a8b796c
3 changed files with 20 additions and 5 deletions
|
@ -8,6 +8,7 @@ use Friendica\BaseModule;
|
|||
use Friendica\Protocol\ActivityPub;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Model\User;
|
||||
use Friendica\Util\HTTPSignature;
|
||||
|
||||
/**
|
||||
* ActivityPub Outbox
|
||||
|
@ -29,6 +30,9 @@ class Outbox extends BaseModule
|
|||
|
||||
$page = defaults($_REQUEST, 'page', null);
|
||||
|
||||
/// @todo Add Authentication to enable fetching of non public content
|
||||
// $requester = HTTPSignature::getSigner('', $_SERVER);
|
||||
|
||||
$outbox = ActivityPub\Transmitter::getOutbox($owner, $page);
|
||||
|
||||
header('Content-Type: application/activity+json');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue