Object instead of Display
This commit is contained in:
parent
e71f497295
commit
cb44aa83c7
3 changed files with 43 additions and 10 deletions
|
@ -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"]]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue