X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fdisplay.php;h=fe8e960f9eb600aa3b971e258326713a0d8f3a29;hb=3ab837f3c783e14e2c8836e73c898041c47f2fd0;hp=907bf8ebba50d16b54ff34e341fe56c9e3da9408;hpb=71ec84f6dc83f753fe80170cfdfd32d202850d90;p=friendica.git diff --git a/mod/display.php b/mod/display.php index 907bf8ebba..fe8e960f9e 100644 --- a/mod/display.php +++ b/mod/display.php @@ -17,6 +17,7 @@ use Friendica\Model\Group; use Friendica\Model\Item; use Friendica\Model\Profile; use Friendica\Protocol\DFRN; +use Friendica\Protocol\ActivityPub; function display_init(App $a) { @@ -43,7 +44,7 @@ function display_init(App $a) $item = null; - $fields = ['id', 'parent', 'author-id', 'body', 'uid']; + $fields = ['id', 'parent', 'author-id', 'body', 'uid', 'guid']; // If there is only one parameter, then check if this parameter could be a guid if ($a->argc == 2) { @@ -76,6 +77,10 @@ function display_init(App $a) displayShowFeed($item["id"], false); } + 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"]]); }