]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Profile/Index.php
Merge branch 'bug-noLocalPosts' of https://github.com/matthiasmoritz/friendica into...
[friendica.git] / src / Module / Profile / Index.php
index 4f46efaa332aad59b3cf9100ffa00da84a176880..9bcc227cdf127b2ed200a5fe5afba0a0372bd3da 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
  *
@@ -22,6 +22,7 @@
 namespace Friendica\Module\Profile;
 
 use Friendica\BaseModule;
+use Friendica\Core\L10n;
 
 /**
  * Profile index router
@@ -34,13 +35,13 @@ use Friendica\BaseModule;
  */
 class Index extends BaseModule
 {
-       public static function rawContent()
+       protected function rawContent(array $request = [])
        {
-               Profile::rawContent();
+               (new Profile($this->l10n, $this->baseUrl, $this->args, $this->logger, $this->profiler, $this->response, $this->server, $this->parameters))->rawContent();
        }
 
-       public static function content()
+       protected function content(array $request = []): string
        {
-               return Status::content();
+               return (new Status($this->l10n, $this->baseUrl, $this->args, $this->logger, $this->profiler, $this->response, $this->server, $this->parameters))->content();
        }
 }