Merge pull request #2341 from annando/1602-contact-bugfix

Bugfix: The "keywords" field in the gcontact table wasn't set correctly
This commit is contained in:
Tobias Diekershoff 2016-02-11 07:35:32 +01:00
commit f48a639537
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),