- if (!DBA::isResult($r)) {
- Logger::log('Author ' . $author_link . ' unknown to user ' . $importer['uid'] . '.');
-
- if (DI::pConfig()->get($importer['uid'], 'system', 'ostatus_autofriend')) {
- $result = Contact::createFromProbe($importer, $author_link);
-
- if ($result['success']) {
- $r = q("SELECT * FROM `contact` WHERE `network` = '%s' AND ( `url` = '%s' OR `alias` = '%s')
- AND `uid` = %d LIMIT 1",
- DBA::escape(Protocol::OSTATUS),
- DBA::escape($author_link),
- DBA::escape($author_link),
- intval($importer['uid'])
- );
- }
- }
- }
-