1
1
Fork 0

Suppress Undefined property message in Core\Protocol

- Address https://github.com/friendica/friendica/issues/10755#issuecomment-979427147
This commit is contained in:
Hypolite Petovan 2021-12-06 19:27:22 -05:00
parent e6a07832dd
commit ad1aea0a2b

View file

@ -176,7 +176,7 @@ class Protocol
$statusnet_user = $matches[2];
$UserData = DI::httpClient()->fetch('http://' . $statusnet_host . '/api/users/show.json?user_id=' . $statusnet_user);
$user = json_decode($UserData);
if ($user) {
if (!empty($user->screen_name)) {
$matches[2] = $user->screen_name;
return self::STATUSNET;
}