]> git.mxchange.org Git - friendica.git/commitdiff
Show contact posts by searching for "contact-id" - not "gcontact-id"
authorMichael Vogel <icarus@dabo.de>
Wed, 27 Jan 2016 10:16:56 +0000 (11:16 +0100)
committerMichael Vogel <icarus@dabo.de>
Wed, 27 Jan 2016 10:16:56 +0000 (11:16 +0100)
mod/contacts.php

index 38e03459e6924964fa455f71ed1afccb96bc6e6e..21578a32954d141b10ff4bd3b601f4305d0b050e 100644 (file)
@@ -903,7 +903,10 @@ function contact_posts($a, $contact_id) {
 
        $o .= $tab_str;
 
-       if ($contact["url"]) {
+       $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"])));