diff --git a/phpBB/phpbb/ucp/controller/webpush.php b/phpBB/phpbb/ucp/controller/webpush.php index 95406840d4..01111f9ca4 100644 --- a/phpBB/phpbb/ucp/controller/webpush.php +++ b/phpBB/phpbb/ucp/controller/webpush.php @@ -133,10 +133,7 @@ class webpush $notification_data = $this->get_anonymous_notifications(); } - // Decode and return data if everything is fine - $data = json_decode($notification_data, true); - - return new JsonResponse($data); + return new JsonResponse($notification_data, 200, [], true); } /**