Bugfix: The "keywords" field in the gcontact table wasn't set correctly

This commit is contained in:
Michael Vogel 2016-02-10 23:39:18 +01:00
parent 255638ff65
commit 20d7d18379
2 changed files with 13 additions and 12 deletions

View 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),