WHERE NOT `blocked` AND `id` = ? LIMIT 1",
$contact['id']);
+ $importer['importer_uid'] = 0;
+
// This should never fail
if (!DBM::is_result($importer)) {
logger('Contact not found for address ' . $msg['author']);
logger('ignoring read-only contact '.$importer["id"]);
return;
}
- if ($importer["uid"] == 0) {
+ if (($importer["uid"] == 0) && ($importer["importer_uid"] != 0)) {
logger("Contact ".$importer["id"]." isn't known to user ".$importer["importer_uid"].". The post will be ignored.", LOGGER_DEBUG);
return;
}