X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fdisplay.php;h=50f405495600c531e9f6fbca5719502406167981;hb=f84c696925467f4091a6ac2e27f97d6a921c1643;hp=dce2a10ce76b166d304473b04e3af241c013fb4c;hpb=489cd0884ade34932fee45f136f77949bb3e3f91;p=friendica.git diff --git a/mod/display.php b/mod/display.php index dce2a10ce7..50f4054956 100644 --- a/mod/display.php +++ b/mod/display.php @@ -40,7 +40,7 @@ use Friendica\Protocol\DFRN; function display_init(App $a) { if (ActivityPub::isRequest()) { - (new Objects(['guid' => DI::args()->getArgv()[1] ?? null]))->rawContent(); + (new Objects(DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), $_SERVER, ['guid' => DI::args()->getArgv()[1] ?? null]))->run(); } if (DI::config()->get('system', 'block_public') && !Session::isAuthenticated()) { @@ -121,7 +121,7 @@ function display_fetchauthor($item) $shared = Item::getShareArray($item); if (!empty($shared) && empty($shared['comment'])) { $profiledata = [ - 'uid' => -1, + 'uid' => 0, 'id' => -1, 'nickname' => '', 'name' => '', @@ -144,7 +144,7 @@ function display_fetchauthor($item) } $profiledata['nickname'] = $profiledata['name']; - $profiledata['network'] = Protocol::matchByProfileUrl($profiledata['url']); + $profiledata['network'] = Protocol::PHANTOM; $profiledata['address'] = ''; $profiledata['about'] = '';