New delivery module for ap

This commit is contained in:
Michael 2018-09-17 21:13:08 +00:00
commit f772ece86f
7 changed files with 183 additions and 89 deletions

View file

@ -80,7 +80,7 @@ function display_init(App $a)
if (ActivityPub::isRequest()) {
$wall_item = Item::selectFirst(['id', 'uid'], ['guid' => $item['guid'], 'wall' => true]);
if ($wall_item['uid'] == 180) {
$data = ActivityPub::createActivityFromItem($wall_item['id']);
$data = ActivityPub::createObjectFromItemID($wall_item['id']);
echo json_encode($data);
exit();
}