Create new Contact\Redir module class

- Move /redir route to /contact/redir
This commit is contained in:
Hypolite Petovan 2022-11-08 19:33:08 -05:00
parent 386c08aa05
commit 4a626ef101
14 changed files with 241 additions and 164 deletions

View file

@ -1149,7 +1149,7 @@ class Contact
$sparkle = false;
if (($contact['network'] === Protocol::DFRN) && !$contact['self'] && empty($contact['pending'])) {
$sparkle = true;
$profile_link = 'redir/' . $contact['id'];
$profile_link = 'contact/redir/' . $contact['id'];
} else {
$profile_link = $contact['url'];
}
@ -3324,7 +3324,7 @@ class Contact
return $destination;
}
$redirect = 'redir/' . $contact['id'];
$redirect = 'contact/redir/' . $contact['id'];
if (($url != '') && !Strings::compareLink($contact['url'], $url)) {
$redirect .= '?url=' . $url;