]> 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 6eb772fdcae109742c3e810843d2d33dcc9eb669..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
  *
@@ -35,18 +35,13 @@ use Friendica\Core\L10n;
  */
 class Index extends BaseModule
 {
-       public function __construct(L10n $l10n, array $parameters = [])
+       protected function rawContent(array $request = [])
        {
-               parent::__construct($l10n, $parameters);
+               (new Profile($this->l10n, $this->baseUrl, $this->args, $this->logger, $this->profiler, $this->response, $this->server, $this->parameters))->rawContent();
        }
 
-       public function rawContent()
+       protected function content(array $request = []): string
        {
-               (new Profile($this->l10n, $this->parameters))->rawContent();
-       }
-
-       public function content(): string
-       {
-               return (new Status($this->l10n, $this->parameters))->content();
+               return (new Status($this->l10n, $this->baseUrl, $this->args, $this->logger, $this->profiler, $this->response, $this->server, $this->parameters))->content();
        }
 }