From a0e580b0ca6e42362e692240cd1193907b8b230b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 14 Apr 2011 21:00:36 +0400 Subject: api/getHeadlines: add include_attachments parameter --- api/index.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'api/index.php') diff --git a/api/index.php b/api/index.php index ea267ca8e..01328b9a7 100644 --- a/api/index.php +++ b/api/index.php @@ -184,9 +184,11 @@ $show_content = (bool)db_escape_string($_REQUEST["show_content"]); /* all_articles, unread, adaptive, marked, updated */ $view_mode = db_escape_string($_REQUEST["view_mode"]); + $include_attachments = (bool)db_escape_string($_REQUEST["include_attachments"]); $headlines = api_get_headlines($link, $feed_id, $limit, $offset, - $filter, $is_cat, $show_excerpt, $show_content, $view_mode, false); + $filter, $is_cat, $show_excerpt, $show_content, $view_mode, false, + $include_attachments); print api_wrap_reply(API_STATUS_OK, $seq, $headlines); -- cgit v1.2.3