Merge pull request #7520 from MrPetovan/bug/7468-contact-search-fan

Suppress relationship string in template vars for public contact
This commit is contained in:
Michael Vogel 2019-08-17 04:42:59 +02:00 committed by GitHub
commit aba23abfaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 15 deletions

View File

@ -984,6 +984,7 @@ class Contact extends BaseModule
$dir_icon = '';
$alt_text = '';
if (!empty($rr['uid']) && !empty($rr['rel'])) {
switch ($rr['rel']) {
case Model\Contact::FRIEND:
$dir_icon = 'images/lrarrow.gif';
@ -1003,6 +1004,7 @@ class Contact extends BaseModule
default:
break;
}
}
$url = Model\Contact::magicLink($rr['url']);