Fix Contact modules

This commit is contained in:
Philipp 2021-11-27 13:19:26 +01:00
parent 4e1080ac4f
commit f245fdaa5d
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
3 changed files with 19 additions and 30 deletions

View file

@ -32,8 +32,11 @@ use Friendica\Core\Protocol;
use Friendica\Core\Theme;
use Friendica\Model;
use Friendica\Module\Contact;
use Friendica\Module\Response;
use Friendica\Module\Security\Login;
use Friendica\Network\HTTPException\NotFoundException;
use Friendica\Util\Profiler;
use Psr\Log\LoggerInterface;
/**
* Manages and show Contacts and their content
@ -48,26 +51,21 @@ class Conversations extends BaseModule
* @var Conversation
*/
private $conversation;
/**
* @var App\BaseURL
*/
private $baseUrl;
/**
* @var LocalRelationship
*/
private $localRelationship;
public function __construct(L10n $l10n, LocalRelationship $localRelationship, App\BaseURL $baseUrl, App\Page $page, Conversation $conversation, array $parameters = [])
public function __construct(L10n $l10n, LocalRelationship $localRelationship, App\BaseURL $baseUrl, App\Arguments $args, LoggerInterface $logger, Profiler $profiler, Response $response, App\Page $page, Conversation $conversation, array $server, array $parameters = [])
{
parent::__construct($l10n, $parameters);
parent::__construct($l10n, $baseUrl, $args, $logger, $profiler, $response, $server, $parameters);
$this->page = $page;
$this->conversation = $conversation;
$this->baseUrl = $baseUrl;
$this->localRelationship = $localRelationship;
}
public function content(): string
protected function content(array $request = []): string
{
if (!local_user()) {
return Login::form($_SERVER['REQUEST_URI']);