From: rabuzarus Date: Fri, 26 Aug 2016 13:47:45 +0000 (+0200) Subject: best_link_url: don't use redirect for pending contacts X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c1555b623a2993c65a3dfde1a5f8294fb919bf99;p=friendica.git best_link_url: don't use redirect for pending contacts --- diff --git a/include/conversation.php b/include/conversation.php index 0340ad3e4a..9d7b474af9 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -887,7 +887,7 @@ function best_link_url($item,&$sparkle,$ssl_state = false) { $clean_url = normalise_link($item['author-link']); if (local_user()) { - $r = q("SELECT `id` FROM `contact` WHERE `network` = '%s' AND `uid` = %d AND `nurl` = '%s' LIMIT 1", + $r = q("SELECT `id` FROM `contact` WHERE `network` = '%s' AND `uid` = %d AND `nurl` = '%s' AND NOT `pending` LIMIT 1", dbesc(NETWORK_DFRN), intval(local_user()), dbesc(normalise_link($clean_url))); if ($r) { $best_url = 'redir/'.$r[0]['id'];