mirror of
https://github.com/friendica/friendica
synced 2024-11-19 04:23:41 +00:00
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:
commit
aba23abfaa
1 changed files with 17 additions and 15 deletions
|
@ -984,24 +984,26 @@ class Contact extends BaseModule
|
||||||
$dir_icon = '';
|
$dir_icon = '';
|
||||||
$alt_text = '';
|
$alt_text = '';
|
||||||
|
|
||||||
switch ($rr['rel']) {
|
if (!empty($rr['uid']) && !empty($rr['rel'])) {
|
||||||
case Model\Contact::FRIEND:
|
switch ($rr['rel']) {
|
||||||
$dir_icon = 'images/lrarrow.gif';
|
case Model\Contact::FRIEND:
|
||||||
$alt_text = L10n::t('Mutual Friendship');
|
$dir_icon = 'images/lrarrow.gif';
|
||||||
break;
|
$alt_text = L10n::t('Mutual Friendship');
|
||||||
|
break;
|
||||||
|
|
||||||
case Model\Contact::FOLLOWER;
|
case Model\Contact::FOLLOWER;
|
||||||
$dir_icon = 'images/larrow.gif';
|
$dir_icon = 'images/larrow.gif';
|
||||||
$alt_text = L10n::t('is a fan of yours');
|
$alt_text = L10n::t('is a fan of yours');
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Model\Contact::SHARING;
|
case Model\Contact::SHARING;
|
||||||
$dir_icon = 'images/rarrow.gif';
|
$dir_icon = 'images/rarrow.gif';
|
||||||
$alt_text = L10n::t('you are a fan of');
|
$alt_text = L10n::t('you are a fan of');
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$url = Model\Contact::magicLink($rr['url']);
|
$url = Model\Contact::magicLink($rr['url']);
|
||||||
|
|
Loading…
Reference in a new issue