From: Michael Date: Fri, 11 Jun 2021 06:02:56 +0000 (+0000) Subject: Making the tests work X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0ecef260644058728988c035cc9a8c66efa7cd17;p=friendica.git Making the tests work --- diff --git a/include/api.php b/include/api.php index df92e9960b..42b25a6c1b 100644 --- a/include/api.php +++ b/include/api.php @@ -100,6 +100,10 @@ function api_user() return $user; } + if (!empty($_SESSION['allow_api'])) { + return local_user(); + } + return false; }