mirror of
https://github.com/friendica/friendica
synced 2024-11-11 11:42:53 +00:00
Suppress Undefined property message in Core\Protocol
- Address https://github.com/friendica/friendica/issues/10755#issuecomment-979427147
This commit is contained in:
parent
e6a07832dd
commit
ad1aea0a2b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue