mirror of
https://github.com/friendica/friendica
synced 2025-04-24 13:50:10 +00:00
Added option to stay on the local machine when clicking on a contact link
This commit is contained in:
parent
0b37f1d56c
commit
5dd426f526
7 changed files with 25 additions and 5 deletions
|
@ -49,6 +49,13 @@ class Hovercard extends BaseModule
|
|||
// the real url (nurl)
|
||||
if (strpos($contact_url, 'redir/') === 0) {
|
||||
$cid = intval(substr($contact_url, 6));
|
||||
}
|
||||
|
||||
if (strpos($contact_url, 'contact/') === 0) {
|
||||
$cid = intval(substr($contact_url, 8));
|
||||
}
|
||||
|
||||
if (!empty($cid)) {
|
||||
$remote_contact = Contact::selectFirst(['nurl'], ['id' => $cid]);
|
||||
$contact_url = $remote_contact['nurl'] ?? '';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue