]> git.mxchange.org Git - friendica.git/commitdiff
Pending or blocked - that's the question ...
authorMichael <heluecht@pirati.ca>
Wed, 30 Nov 2016 04:30:48 +0000 (04:30 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 30 Nov 2016 04:30:48 +0000 (04:30 +0000)
include/conversation.php

index 250691a18026be899dbbcdb2715e9e9bb988421f..f8facc5741afa028e753fdac92146ca1e878bb1a 100644 (file)
@@ -885,7 +885,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' 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)));
                if ($r) {
                        $best_url = 'redir/'.$r[0]['id'];