]> git.mxchange.org Git - friendica.git/commitdiff
Suppress relationship string in template vars for public contact
authorHypolite Petovan <hypolite@mrpetovan.com>
Fri, 16 Aug 2019 01:24:33 +0000 (21:24 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Fri, 16 Aug 2019 01:24:33 +0000 (21:24 -0400)
src/Module/Contact.php

index 6eb46d9d5ac4c1e05414329e06be1d1bf28cf977..4a127eee4194749c986bdd98a1c73b5426928019 100644 (file)
@@ -984,24 +984,26 @@ class Contact extends BaseModule
                $dir_icon = '';
                $alt_text = '';
 
-               switch ($rr['rel']) {
-                       case Model\Contact::FRIEND:
-                               $dir_icon = 'images/lrarrow.gif';
-                               $alt_text = L10n::t('Mutual Friendship');
-                               break;
+               if ($rr['uid']) {
+                       switch ($rr['rel']) {
+                               case Model\Contact::FRIEND:
+                                       $dir_icon = 'images/lrarrow.gif';
+                                       $alt_text = L10n::t('Mutual Friendship');
+                                       break;
 
-                       case Model\Contact::FOLLOWER;
-                               $dir_icon = 'images/larrow.gif';
-                               $alt_text = L10n::t('is a fan of yours');
-                               break;
+                               case Model\Contact::FOLLOWER;
+                                       $dir_icon = 'images/larrow.gif';
+                                       $alt_text = L10n::t('is a fan of yours');
+                                       break;
 
-                       case Model\Contact::SHARING;
-                               $dir_icon = 'images/rarrow.gif';
-                               $alt_text = L10n::t('you are a fan of');
-                               break;
+                               case Model\Contact::SHARING;
+                                       $dir_icon = 'images/rarrow.gif';
+                                       $alt_text = L10n::t('you are a fan of');
+                                       break;
 
-                       default:
-                               break;
+                               default:
+                                       break;
+                       }
                }
 
                $url = Model\Contact::magicLink($rr['url']);