mirror of
https://github.com/friendica/friendica
synced 2025-04-27 12:30:11 +00:00
Create new Contact\Redir module class
- Move /redir route to /contact/redir
This commit is contained in:
parent
386c08aa05
commit
4a626ef101
14 changed files with 241 additions and 164 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue