From ae99144f576cf349a0d6718d09af511df3576fb2 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 21 Nov 2021 00:15:36 +0000 Subject: [PATCH] Tests again --- src/Module/BaseApi.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Module/BaseApi.php b/src/Module/BaseApi.php index c097a58269..1d24e53b9d 100644 --- a/src/Module/BaseApi.php +++ b/src/Module/BaseApi.php @@ -329,6 +329,9 @@ class BaseApi extends BaseModule } $user_info = DI::twitterUser()->createFromContactId($cid)->toArray(); + if (empty($user_info)) { + return $arr; + } $arr['$user'] = $user_info; $arr['$rss'] = [