]> git.mxchange.org Git - friendica.git/blobdiff - mod/dirfind.php
Merge pull request #1950 from annando/1510-contact-menu
[friendica.git] / mod / dirfind.php
index 0c2505361ee123f322508b6c2c2e036a6c384873..95f9bf53a8890052a264ae701d911dca765cee57 100644 (file)
@@ -5,6 +5,11 @@ require_once('include/Contact.php');
 
 function dirfind_init(&$a) {
 
+       if(! local_user()) {
+               notice( t('Permission denied.') . EOL );
+               return;
+       }
+
        if(! x($a->page,'aside'))
                $a->page['aside'] = '';
 
@@ -132,7 +137,8 @@ function dirfind_content(&$a, $prefix = "") {
                                } else {
                                        $connlnk = $a->get_baseurl().'/follow/?url='.(($jj->connect) ? $jj->connect : $jj->url);
                                        $conntxt = t('Connect');
-                                       $photo_menu = array(array(t("Connect/Follow"), $connlnk));
+                                       $photo_menu = array(array(t("View Profile"), zrl($jj->url)));
+                                       $photo_menu[] = array(t("Connect/Follow"), $connlnk);
                                }
 
                                $jj->photo = str_replace("http:///photo/", get_server()."/photo/", $jj->photo);