]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Update/Profile.php
Merge remote-tracking branch 'upstream/2021.12-rc' into user-banner
[friendica.git] / src / Module / Update / Profile.php
index e9e8681af5725aa5cc99f7d4481c3cbfd56b1b8f..22e6e4a997b1e371dd57624cb31cdfa7981f1d2c 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -35,7 +35,7 @@ use Friendica\Util\DateTimeFormat;
 
 class Profile extends BaseModule
 {
-       public static function rawContent(array $parameters = [])
+       protected function rawContent(array $request = [])
        {
                $a = DI::app();
 
@@ -93,7 +93,7 @@ class Profile extends BaseModule
                );
 
                if (!DBA::isResult($items_stmt)) {
-                       return '';
+                       return;
                }
 
                // Set a time stamp for this page. We will make use of it when we
@@ -115,7 +115,7 @@ class Profile extends BaseModule
 
                $items = DBA::toArray($items_stmt);
 
-               $o .= conversation($a, $items, 'profile', $a->getProfileOwner(), false, 'received', $a->getProfileOwner());
+               $o .= DI::conversation()->create($items, 'profile', $a->getProfileOwner(), false, 'received', $a->getProfileOwner());
 
                System::htmlUpdateExit($o);
        }