From 87764a50cf08f33008a0f83d91b4d807643db67c Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 23 Nov 2012 13:22:34 +0400 Subject: implement ttrss_feeds.cache_content --- classes/api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'classes/api.php') diff --git a/classes/api.php b/classes/api.php index 15576c7c0..e3dce0c17 100644 --- a/classes/api.php +++ b/classes/api.php @@ -280,7 +280,7 @@ class API extends Handler { $article_id = join(",", array_filter(explode(",", db_escape_string($_REQUEST["article_id"])), is_numeric)); - $query = "SELECT id,title,link,content,feed_id,comments,int_id, + $query = "SELECT id,title,link,content,cached_content,feed_id,comments,int_id, marked,unread,published, ".SUBSTRING_FOR_DATE."(updated,1,16) as updated, author @@ -309,7 +309,7 @@ class API extends Handler { "comments" => $line["comments"], "author" => $line["author"], "updated" => strtotime($line["updated"]), - "content" => $line["content"], + "content" => $line["cached_content"] != "" ? $line["cached_content"] : $line["content"], "feed_id" => $line["feed_id"], "attachments" => $attachments ); -- cgit v1.2.3