2019-10-27 14:08:14 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Friendica\Module\Profile;
|
|
|
|
|
2020-01-26 14:54:21 +00:00
|
|
|
use Friendica\BaseModule;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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
|
2019-10-27 14:08:14 +00:00
|
|
|
{
|
|
|
|
public static function rawContent(array $parameters = [])
|
|
|
|
{
|
2020-01-26 14:54:21 +00:00
|
|
|
Profile::rawContent($parameters);
|
2019-10-27 14:08:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static function content(array $parameters = [])
|
|
|
|
{
|
2020-01-26 14:54:21 +00:00
|
|
|
return Status::content($parameters);
|
2019-11-08 03:15:57 +00:00
|
|
|
}
|
2019-10-27 14:08:14 +00:00
|
|
|
}
|