X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fdfrn_notify.php;h=d2250720a56a3e021543c4bc95b5b5e6f30e6724;hb=c0e728e7e5d12c3c54a8c140e004992660701244;hp=3595df9c916ce71f92219398f134a8d2b93307d7;hpb=37253656e3f1403b25c5f0fee6c9631140c4507a;p=friendica.git diff --git a/mod/dfrn_notify.php b/mod/dfrn_notify.php index 3595df9c91..d2250720a5 100644 --- a/mod/dfrn_notify.php +++ b/mod/dfrn_notify.php @@ -212,13 +212,20 @@ function dfrn_dispatch_public($postdata) } // We now have some contact, so we fetch it - $importer = DBA::fetchFirst("SELECT *, `name` as `senderName` + $importer = DBA::fetchFirst("SELECT *, `name` as `senderName`, + 0 AS `importer_uid`, + '' AS `uprvkey`, + 'UTC' AS `timezone`, + '' AS `nickname`, + '' AS `sprvkey`, + '' AS `spubkey`, + 0 AS `page-flags`, + 0 AS `account-type`, + 0 AS `prvnets` FROM `contact` WHERE NOT `blocked` AND `id` = ? LIMIT 1", $contact['id']); - $importer['importer_uid'] = 0; - // This should never fail if (!DBA::isResult($importer)) { logger('Contact not found for address ' . $msg['author']); @@ -375,7 +382,7 @@ function dfrn_notify_content(App $a) { $rino = $rino_remote; } - if (($r[0]['rel'] && ($r[0]['rel'] != Contact::SHARING)) || ($r[0]['page-flags'] == PAGE_COMMUNITY)) { + if (($r[0]['rel'] && ($r[0]['rel'] != Contact::SHARING)) || ($r[0]['page-flags'] == Contact::PAGE_COMMUNITY)) { $perm = 'rw'; } else { $perm = 'r';