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