diff --git a/app/controllers/shared/api.php b/app/controllers/shared/api.php index 05477d679a..16d44481b6 100644 --- a/app/controllers/shared/api.php +++ b/app/controllers/shared/api.php @@ -856,7 +856,7 @@ App::shutdown() * * Therefore, we consider this an anonymous request and create a relevant user. */ - $user = new Document([ + $user = new User([ '$id' => '', 'status' => true, 'type' => ACTIVITY_TYPE_GUEST,