From 4a891b20f06e04b015d4da9b755d444b915f4b7d Mon Sep 17 00:00:00 2001 From: wn_ Date: Thu, 18 Nov 2021 21:31:52 +0000 Subject: [PATCH] Fix 'view_mode' default in API#getHeadlines() --- classes/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/api.php b/classes/api.php index c6a6a69a4..fcc2bdfd9 100755 --- a/classes/api.php +++ b/classes/api.php @@ -201,7 +201,7 @@ class API extends Handler { $show_excerpt = self::_param_to_bool($_REQUEST["show_excerpt"] ?? false); $show_content = self::_param_to_bool($_REQUEST["show_content"] ?? false); /* all_articles, unread, adaptive, marked, updated */ - $view_mode = clean($_REQUEST["view_mode"] ?? false); + $view_mode = clean($_REQUEST["view_mode"] ?? null); $include_attachments = self::_param_to_bool($_REQUEST["include_attachments"] ?? false); $since_id = (int)clean($_REQUEST["since_id"] ?? 0); $include_nested = self::_param_to_bool($_REQUEST["include_nested"] ?? false);