Merge pull request #6214 from annando/issue-6212

Issue 6212: No need of a redirect for fetching content
This commit is contained in:
Hypolite Petovan 2018-11-29 18:54:34 -05:00 committed by GitHub
commit 1bd38d1f10
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,6 +22,7 @@ use Friendica\Model\Profile;
use Friendica\Protocol\ActivityPub;
use Friendica\Protocol\DFRN;
use Friendica\Util\Strings;
use Friendica\Module\Objects;
function display_init(App $a)
{
@ -82,7 +83,7 @@ function display_init(App $a)
}
if (ActivityPub::isRequest()) {
$a->internalRedirect(str_replace('display/', 'objects/', $a->query_string));
Objects::rawContent();
}
if ($item["id"] != $item["parent"]) {