]> git.mxchange.org Git - friendica.git/blobdiff - mod/pubsub.php
Bugfix: The "keywords" field in the gcontact table wasn't set correctly
[friendica.git] / mod / pubsub.php
index beb73b4e2c4ce53a9ed5a6fcaf3ea56108e2040c..6053ee2fbe1553e60d1fa182aff303fbd8e1dad0 100644 (file)
@@ -122,8 +122,8 @@ function pubsub_post(&$a) {
 
        $importer = $r[0];
 
-       $r = q("SELECT * FROM `contact` WHERE `subhub` = 1 AND `id` = %d AND `uid` = %d
-               AND ( `rel` = %d OR `rel` = %d OR network = '%s' ) AND `blocked` = 0 AND `readonly` = 0 LIMIT 1",
+       $r = q("SELECT * FROM `contact` WHERE `subhub` AND `id` = %d AND `uid` = %d
+               AND (`rel` = %d OR `rel` = %d OR network = '%s') AND NOT `blocked` LIMIT 1",
                intval($contact_id),
                intval($importer['uid']),
                intval(CONTACT_IS_SHARING),