]> git.mxchange.org Git - friendica.git/blobdiff - mod/display.php
Renamed functions
[friendica.git] / mod / display.php
index 21e28d5617250d2e76e38595a678ff7d63b0ffe8..fe8e960f9eb600aa3b971e258326713a0d8f3a29 100644 (file)
@@ -77,14 +77,10 @@ function display_init(App $a)
                displayShowFeed($item["id"], false);
        }
 
-       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));
        }
+
        if ($item["id"] != $item["parent"]) {
                $item = Item::selectFirstForUser(local_user(), $fields, ['id' => $item["parent"]]);
        }