From d3bf80a1f3a58cf92e47ddd157879990d01b67bd Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Wed, 27 Jan 2016 11:16:56 +0100 Subject: [PATCH] Show contact posts by searching for "contact-id" - not "gcontact-id" --- mod/contacts.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mod/contacts.php b/mod/contacts.php index 38e03459e6..21578a3295 100644 --- a/mod/contacts.php +++ b/mod/contacts.php @@ -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"]))); -- 2.39.5