}
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']);
- echo json_encode($data);
- exit();
- }
+ goaway(str_replace('display/', 'objects/', $a->query_string));
}
+
if ($item["id"] != $item["parent"]) {
$item = Item::selectFirstForUser(local_user(), $fields, ['id' => $item["parent"]]);
}
$title = trim(HTML::toPlaintext(BBCode::convert($item["title"], false), 0, true));
$author_name = $item["author-name"];
- $image = $a->remove_baseurl($item["author-avatar"]);
+ $image = $a->removeBaseURL($item["author-avatar"]);
if ($title == "") {
$title = $author_name;