X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FXrd.php;h=d2813cc270ae0d39c479bc79e9cb4cd348651aea;hb=fc283ab92858238a5a55f24b1d1650bb72068b7d;hp=d63fcb5eeb382a04f41cac88967614c80783b6f5;hpb=2b95a7e7cd76c573b82b2dbcc5ad08b1501ee89b;p=friendica.git diff --git a/src/Module/Xrd.php b/src/Module/Xrd.php index d63fcb5eeb..d2813cc270 100644 --- a/src/Module/Xrd.php +++ b/src/Module/Xrd.php @@ -40,10 +40,8 @@ class Xrd extends BaseModule { public static function rawContent(array $parameters = []) { - $app = DI::app(); - // @TODO: Replace with parameter from router - if ($app->argv[0] == 'xrd') { + if (DI::args()->getArgv()[0] == 'xrd') { if (empty($_GET['uri'])) { return; } @@ -132,6 +130,25 @@ class Xrd extends BaseModule 'rel' => 'http://ostatus.org/schema/1.0/subscribe', 'template' => DI::baseUrl()->get() . '/follow?url={uri}', ], + [ + 'rel' => ActivityNamespace::FEED, + 'type' => 'application/atom+xml', + 'href' => $owner['poll'] ?? DI::baseUrl()->get(), + ], + [ + 'rel' => 'salmon', + 'href' => DI::baseUrl()->get() . '/salmon/' . $owner['nickname'], + ], + [ + 'rel' => 'http://microformats.org/profile/hcard', + 'type' => 'text/html', + 'href' => DI::baseUrl()->get() . '/hcard/' . $owner['nickname'], + ], + [ + 'rel' => 'http://joindiaspora.com/seed_location', + 'type' => 'text/html', + 'href' => DI::baseUrl()->get(), + ], ] ]; header('Access-Control-Allow-Origin: *');