AP class will be split in processor, receiver and transmitter

This commit is contained in:
Michael 2018-10-03 06:15:07 +00:00
parent 76cdc9e594
commit 4d2e5c2bbe
7 changed files with 1906 additions and 145 deletions

View file

@ -29,7 +29,7 @@ class Followers extends BaseModule
$page = defaults($_REQUEST, 'page', null);
$followers = ActivityPub::getFollowers($owner, $page);
$followers = ActivityPub\Transmitter::getFollowers($owner, $page);
header('Content-Type: application/activity+json');
echo json_encode($followers);

View file

@ -29,7 +29,7 @@ class Following extends BaseModule
$page = defaults($_REQUEST, 'page', null);
$Following = ActivityPub::getFollowing($owner, $page);
$Following = ActivityPub\Transmitter::getFollowing($owner, $page);
header('Content-Type: application/activity+json');
echo json_encode($Following);

View file

@ -29,7 +29,7 @@ class Outbox extends BaseModule
$page = defaults($_REQUEST, 'page', null);
$outbox = ActivityPub::getOutbox($owner, $page);
$outbox = ActivityPub\Transmitter::getOutbox($owner, $page);
header('Content-Type: application/activity+json');
echo json_encode($outbox);