From: Andrew Dolgov Date: Sun, 18 Jul 2010 13:15:32 +0000 (+0400) Subject: api: add attachment information in getArticle X-Git-Tag: 1.4.3-proper~19 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=8fd8b4b132b59a397d3e761a163e1bf1fcc03548;p=tt-rss.git api: add attachment information in getArticle --- diff --git a/api/index.php b/api/index.php index 8e6400a0..1faf9a9f 100644 --- a/api/index.php +++ b/api/index.php @@ -331,6 +331,8 @@ WHERE id = '$article_id' AND ref_id = id AND owner_uid = " . $_SESSION["uid"] ; + $attachments = get_article_enclosures($link, $article_id); + $result = db_query($link, $query); $article = array(); @@ -349,7 +351,8 @@ "author" => $line["author"], "updated" => strtotime($line["updated"]), "content" => $line["content"], - "feed_id" => $line["feed_id"], + "feed_id" => $line["feed_id"], + "attachments" => $attachments ); }