Object instead of Display

This commit is contained in:
Michael 2018-09-30 12:21:57 +00:00
commit cb44aa83c7
3 changed files with 43 additions and 10 deletions

View file

@ -78,13 +78,9 @@ function display_init(App $a)
}
if (ActivityPub::isRequest()) {
$wall_item = Item::selectFirst(['id', 'uid'], ['guid' => $item['guid'], 'wall' => true]);
if (DBA::isResult($wall_item)) {
$data = ActivityPub::createObjectFromItemID($wall_item['id']);
echo json_encode($data);
exit();
}
goaway(str_replace('display/', 'object/', $a->query_string));
}
if ($item["id"] != $item["parent"]) {
$item = Item::selectFirstForUser(local_user(), $fields, ['id' => $item["parent"]]);
}