Move Follow to /contact namespace

This commit is contained in:
Philipp 2022-10-31 17:58:04 +01:00
parent 3554894577
commit b5d01337d9
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
6 changed files with 8 additions and 8 deletions

View file

@ -202,7 +202,7 @@ class Follow extends BaseModule
protected function process(string $url)
{
$returnPath = 'follow?rul=' . urlencode($url);
$returnPath = 'follow?url=' . urlencode($url);
$result = Contact::createFromProbeForUser($this->app->getLoggedInUserId(), $url);

View file

@ -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' => [