]> git.mxchange.org Git - friendica.git/blobdiff - include/Contact.php
ensure D* photos only attached once
[friendica.git] / include / Contact.php
index 6eda0b6c520013a1d312e91be1c6a5d621f5d3dd..45920041eb6550e6256565466dd8967ab7933e2b 100644 (file)
@@ -114,8 +114,8 @@ function contact_photo_menu($contact) {
                $pm_url = $a->get_baseurl() . '/message/new/' . $contact['id'];
        }
 
-       $contact_url = $a->get_baseurl() . '/contacts/' . $cid;
-       $posts_link = $a->get_baseurl() . '/network/?cid=' . $cid;
+       $contact_url = $a->get_baseurl() . '/contacts/' . $contact['id'];
+       $posts_link = $a->get_baseurl() . '/network/?cid=' . $contact['id'];
 
        $menu = Array(
                t("View status") => $status_link,
@@ -133,7 +133,12 @@ function contact_photo_menu($contact) {
        
        $o = "";
        foreach($menu as $k=>$v){
-               if ($v!="") $o .= "<li><a href='$v'>$k</a></li>\n";
+               if ($v!="") {
+                       if(($k !== t("View recent")) && ($k !== t("Send PM")))
+                               $o .= "<li><a target=\"redir\" href=\"$v\">$k</a></li>\n";
+                       else
+                               $o .= "<li><a href=\"$v\">$k</a></li>\n";
+               }
        }
        return $o;
 }}