X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fdfrn.php;h=9cbf05ece2bf4da3374e1bc64c580ad55968e85d;hb=d49325d177cf03b97df250ca3cb081421c541049;hp=e048e66085c6acfb1a49d0d8e5b740381ccb8a1e;hpb=8e50254bb994592b28e04299a4bfc11f4c8c979a;p=friendica.git diff --git a/include/dfrn.php b/include/dfrn.php index e048e66085..9cbf05ece2 100644 --- a/include/dfrn.php +++ b/include/dfrn.php @@ -3,7 +3,8 @@ * @file include/dfrn.php * @brief The implementation of the dfrn protocol * - * https://github.com/friendica/friendica/wiki/Protocol + * @see https://github.com/friendica/friendica/wiki/Protocol and + * https://github.com/friendica/friendica/blob/master/spec/dfrn2.pdf */ require_once("include/Contact.php"); @@ -134,7 +135,7 @@ class dfrn { break; // NOTREACHED } - $r = q("SELECT * FROM `contact` WHERE `blocked` = 0 AND `pending` = 0 AND `contact`.`uid` = %d $sql_extra LIMIT 1", + $r = q("SELECT * FROM `contact` WHERE NOT `blocked` AND `contact`.`uid` = %d $sql_extra LIMIT 1", intval($owner_id) );