X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FWorker%2FAddContact.php;h=1ac2b171e5d06145f933cff711ed5fda40617bfa;hb=9fbdcb5459e4acb158961427837612999253e046;hp=6bb8a41b59ce3fa50928785249b09e1d53df3253;hpb=18745b1723b3f8580704914e8f9df8441c859e70;p=friendica.git diff --git a/src/Worker/AddContact.php b/src/Worker/AddContact.php index 6bb8a41b59..1ac2b171e5 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]); } }