}
// 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']);
$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';