]> git.mxchange.org Git - friendica.git/blobdiff - mod/contacts.php
Removed commented code
[friendica.git] / mod / contacts.php
index 23907669a6a91994f389da881a9afdec73ee7237..1c1c21638d4e2225254debf94d02874ad6845a3f 100644 (file)
@@ -894,16 +894,7 @@ function contact_posts($a, $contact_id) {
 
        $o .= $tab_str;
 
-       $r = q("SELECT `id` FROM `item` WHERE `contact-id` = %d LIMIT 1", intval($contact_id));
-       if ($r)
-               $o .= posts_from_contact($a, $contact_id);
-       elseif ($contact["url"]) {
-               $r = q("SELECT `id` FROM `gcontact` WHERE `nurl` = '%s' LIMIT 1",
-                       dbesc(normalise_link($contact["url"])));
-
-               if ($r[0]["id"] <> 0)
-                       $o .= posts_from_gcontact($a, $r[0]["id"]);
-       }
+       $o .= posts_from_contact_url($a, $contact["url"]);
 
        return $o;
 }