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

@ -62,7 +62,7 @@ class APContact
'addr' => $local_owner['addr'],
'baseurl' => $local_owner['baseurl'],
'url' => $local_owner['url'],
'subscribe' => $local_owner['baseurl'] . '/follow?url={uri}'];
'subscribe' => $local_owner['baseurl'] . '/contact/follow?url={uri}'];
if (!empty($local_owner['alias']) && ($local_owner['url'] != $local_owner['alias'])) {
$data['alias'] = $local_owner['alias'];

View file

@ -341,7 +341,7 @@ class Profile
if ($visitor_is_following) {
$unfollow_link = $visitor_base_path . '/contact/unfollow?url=' . urlencode($profile_url) . '&auto=1';
} else {
$follow_link = $visitor_base_path . '/follow?url=' . urlencode($profile_url) . '&auto=1';
$follow_link = $visitor_base_path .'/contact/follow?url=' . urlencode($profile_url) . '&auto=1';
}
}