Fix 'view_mode' default in API#getHeadlines()

This commit is contained in:
wn_ 2021-11-18 21:31:52 +00:00
parent d532eb773b
commit 4a891b20f0
1 changed files with 1 additions and 1 deletions

View File

@ -201,7 +201,7 @@ class API extends Handler {
$show_excerpt = self::_param_to_bool($_REQUEST["show_excerpt"] ?? false); $show_excerpt = self::_param_to_bool($_REQUEST["show_excerpt"] ?? false);
$show_content = self::_param_to_bool($_REQUEST["show_content"] ?? false); $show_content = self::_param_to_bool($_REQUEST["show_content"] ?? false);
/* all_articles, unread, adaptive, marked, updated */ /* 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); $include_attachments = self::_param_to_bool($_REQUEST["include_attachments"] ?? false);
$since_id = (int)clean($_REQUEST["since_id"] ?? 0); $since_id = (int)clean($_REQUEST["since_id"] ?? 0);
$include_nested = self::_param_to_bool($_REQUEST["include_nested"] ?? false); $include_nested = self::_param_to_bool($_REQUEST["include_nested"] ?? false);