From ad1aea0a2b4cc5befa5a8e3e45d91789b182c6ef Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 6 Dec 2021 19:27:22 -0500 Subject: [PATCH] Suppress Undefined property message in Core\Protocol - Address https://github.com/friendica/friendica/issues/10755#issuecomment-979427147 --- src/Core/Protocol.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Protocol.php b/src/Core/Protocol.php index bba7149a04..3b3a29d071 100644 --- a/src/Core/Protocol.php +++ b/src/Core/Protocol.php @@ -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; }