. * */ 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 { public function rawContent() { (new Profile($this->l10n, $this->parameters))->rawContent(); } public function content(): string { return (new Status($this->l10n, $this->parameters))->content(); } }