diff --git a/src/Core/Protocol.php b/src/Core/Protocol.php index bba7149a0..3b3a29d07 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; }