]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Xrd.php
Reduce error-throws :-)
[friendica.git] / src / Module / Xrd.php
index b12e94a290df3850431a86ca117158bac7e6d0a3..4e4603fbdb20dcc3848a7d8bc6d98603d9b41eb6 100644 (file)
@@ -83,7 +83,7 @@ class Xrd extends BaseModule
                } else {
                        $owner = User::getOwnerDataByNick($name);
                        if (empty($owner)) {
-                               DI::logger()->warning('No owner data for user id', ['uri' => $uri, 'name' => $name]);
+                               DI::logger()->notice('No owner data for user id', ['uri' => $uri, 'name' => $name]);
                                throw new NotFoundException('Owner was not found for user->uid=' . $name);
                        }
 
@@ -122,7 +122,7 @@ class Xrd extends BaseModule
                                ],
                                [
                                        'rel'      => 'http://ostatus.org/schema/1.0/subscribe',
-                                       'template' => $baseURL . '/follow?url={uri}',
+                                       'template' => $baseURL . '/contact/follow?url={uri}',
                                ],
                                [
                                        'rel'  => ActivityNamespace::FEED,
@@ -212,7 +212,7 @@ class Xrd extends BaseModule
                                ],
                                [
                                        'rel'      => 'http://ostatus.org/schema/1.0/subscribe',
-                                       'template' => $baseURL . '/follow?url={uri}',
+                                       'template' => $baseURL . '/contact/follow?url={uri}',
                                ],
                                [
                                        'rel'  => 'magic-public-key',
@@ -312,7 +312,7 @@ class Xrd extends BaseModule
                                '11:link' => [
                                        '@attributes' => [
                                                'rel'  => 'http://ostatus.org/schema/1.0/subscribe',
-                                               'template' => $baseURL . '/follow?url={uri}'
+                                               'template' => $baseURL . '/contact/follow?url={uri}'
                                        ]
                                ],
                                '12:link' => [