- if (stristr(defaults($_SERVER, 'HTTP_ACCEPT', ''), 'application/activity+json')) {
- $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();
- }
+ if (ActivityPub::isRequest()) {
+ goaway(str_replace('display/', 'objects/', $a->query_string));