X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FWorker%2FAddContact.php;h=b27c54ed76f885d889f61cc5d3687aecc1ad210a;hb=4139134cfd2f86ba6fec2adef37bca16ab466514;hp=6bb8a41b59ce3fa50928785249b09e1d53df3253;hpb=5f43f56f7205d61b5bd867ff6c984636893187f2;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]); } }