]> git.mxchange.org Git - friendica.git/blobdiff - mod/display.php
Object instead of Display
[friendica.git] / mod / display.php
index ff98e689d38b2aac51274a2b0b1f80357b48e2b7..25bda99d013881eeacd20ecf08a1f4e3ddefa3f4 100644 (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"]]);
        }