X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FWorker%2FAddContact.php;h=b27c54ed76f885d889f61cc5d3687aecc1ad210a;hb=f61fd93db02bc2d66e1473ca34dc1154e77217a3;hp=6bb8a41b59ce3fa50928785249b09e1d53df3253;hpb=18745b1723b3f8580704914e8f9df8441c859e70;p=friendica.git diff --git a/src/Worker/AddContact.php b/src/Worker/AddContact.php index 6bb8a41b59..b27c54ed76 100644 --- a/src/Worker/AddContact.php +++ b/src/Worker/AddContact.php @@ -1,6 +1,6 @@ info('Added public contact', ['url' => $url, 'result' => $result]); + return; + } + + $result = Contact::createFromProbeForUser($uid, $url); + DI::logger()->info('Added contact for user', ['uid' => $uid, 'url' => $url, 'result' => $result]); + } catch (InternalServerErrorException $e) { + DI::logger()->warning('Internal server error.', ['exception' => $e, 'uid' => $uid, 'url' => $url]); + } catch (NotFoundException $e) { + DI::logger()->notice('uid not found.', ['exception' => $e, 'uid' => $uid, 'url' => $url]); + } catch (\ImagickException $e) { + DI::logger()->notice('Imagick not found.', ['exception' => $e, 'uid' => $uid, 'url' => $url]); } - $result = Contact::createFromProbe($user, $url, '', false); - Logger::info('Added contact', ['uid' => $uid, 'url' => $url, 'result' => $result]); } }