Pending or blocked - that's the question ...
This commit is contained in:
parent
624fabf884
commit
63389ba23d
|
@ -885,7 +885,7 @@ function best_link_url($item,&$sparkle,$ssl_state = false) {
|
||||||
$clean_url = normalise_link($item['author-link']);
|
$clean_url = normalise_link($item['author-link']);
|
||||||
|
|
||||||
if (local_user()) {
|
if (local_user()) {
|
||||||
$r = q("SELECT `id` FROM `contact` WHERE `network` = '%s' AND `uid` = %d AND `nurl` = '%s' AND NOT `blocked` 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)));
|
dbesc(NETWORK_DFRN), intval(local_user()), dbesc(normalise_link($clean_url)));
|
||||||
if ($r) {
|
if ($r) {
|
||||||
$best_url = 'redir/'.$r[0]['id'];
|
$best_url = 'redir/'.$r[0]['id'];
|
||||||
|
|
Loading…
Reference in a new issue