]> git.mxchange.org Git - friendica.git/blobdiff - mod/display.php
Reenable Twitter/Favorites tests
[friendica.git] / mod / display.php
index daa78b03e1046717f7ae308d17c54015677777cd..50f405495600c531e9f6fbca5719502406167981 100644 (file)
@@ -40,7 +40,7 @@ use Friendica\Protocol\DFRN;
 function display_init(App $a)
 {
        if (ActivityPub::isRequest()) {
-               (new Objects(DI::l10n(), ['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'] = '';