Soem more C2S stuff moved
This commit is contained in:
@@ -61,9 +61,9 @@ class Inbox extends BaseApi
|
||||
if ($owner['uid'] != $uid) {
|
||||
throw new \Friendica\Network\HTTPException\ForbiddenException();
|
||||
}
|
||||
$outbox = ActivityPub\Transmitter::getInbox($uid, $page, $request['max_id'] ?? null);
|
||||
$outbox = ActivityPub\ClientToServer::getInbox($uid, $page, $request['max_id'] ?? null);
|
||||
} else {
|
||||
$outbox = ActivityPub\Transmitter::getPublicInbox($uid, $page, $request['max_id'] ?? null);
|
||||
$outbox = ActivityPub\ClientToServer::getPublicInbox($uid, $page, $request['max_id'] ?? null);
|
||||
}
|
||||
|
||||
System::jsonExit($outbox, 'application/activity+json');
|
||||
|
||||
@@ -51,8 +51,7 @@ class Outbox extends BaseApi
|
||||
$page = 1;
|
||||
}
|
||||
|
||||
$requester = HTTPSignature::getSigner('', $_SERVER);
|
||||
$outbox = ActivityPub\Transmitter::getOutbox($owner, $uid, $page, $request['max_id'] ?? null, $requester);
|
||||
$outbox = ActivityPub\ClientToServer::getOutbox($owner, $uid, $page, $request['max_id'] ?? null, HTTPSignature::getSigner('', $_SERVER));
|
||||
|
||||
System::jsonExit($outbox, 'application/activity+json');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user