]> git.mxchange.org Git - friendica.git/blobdiff - mod/display.php
all endpoints are now working
[friendica.git] / mod / display.php
index 047f752c9859e1aa0fd8e0b5d687d1d4bb6e6221..ff98e689d38b2aac51274a2b0b1f80357b48e2b7 100644 (file)
@@ -79,8 +79,8 @@ function display_init(App $a)
 
        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']);
+               if (DBA::isResult($wall_item)) {
+                       $data = ActivityPub::createObjectFromItemID($wall_item['id']);
                        echo json_encode($data);
                        exit();
                }