1
0
Fork 0

Merge pull request #2298 from annando/1601-contact-posts

Show contact posts by searching for "contact-id" - not "gcontact-id"
This commit is contained in:
Tobias Diekershoff 2016-01-27 12:39:43 +01:00
commit d6c1889a20

View 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"])));