Merge pull request #5815 from annando/ap2
The ActivityPub functionality is now split into 4 files
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -48,7 +48,7 @@ class Inbox extends BaseModule
|
||||
$uid = 0;
|
||||
}
|
||||
|
||||
ActivityPub::processInbox($postdata, $_SERVER, $uid);
|
||||
ActivityPub\Receiver::processInbox($postdata, $_SERVER, $uid);
|
||||
|
||||
System::httpExit(202);
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ class Objects extends BaseModule
|
||||
System::httpExit(404);
|
||||
}
|
||||
|
||||
$data = ActivityPub::createObjectFromItemID($item['id']);
|
||||
$data = ActivityPub\Transmitter::createObjectFromItemID($item['id']);
|
||||
|
||||
header('Content-Type: application/activity+json');
|
||||
echo json_encode($data);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user