mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-08 15:54:27 +02:00
Merge pull request #5815 from annando/ap2
The ActivityPub functionality is now split into 4 files
This commit is contained in:
commit
743e7d3ecb
17 changed files with 1986 additions and 1844 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue