. * */ namespace Friendica\Module\Profile; use Friendica\BaseModule; use Friendica\Core\L10n; /** * Profile index router * * The default profile path (https://domain.tld/profile/nickname) has to serve the profile data when queried as an * ActivityPub endpoint, but it should show statuses to web users. * * Both these view have dedicated sub-paths, * respectively https://domain.tld/profile/nickname/profile and https://domain.tld/profile/nickname/status */ class Index extends BaseModule { protected function rawContent(array $request = []) { (new Profile($this->l10n, $this->baseUrl, $this->args, $this->logger, $this->profiler, $this->response, $this->server, $this->parameters))->rawContent(); } protected function content(array $request = []): string { return (new Status($this->l10n, $this->baseUrl, $this->args, $this->logger, $this->profiler, $this->response, $this->server, $this->parameters))->content(); } }