api: add attachment information in getArticle

This commit is contained in:
Andrew Dolgov 2010-07-18 17:15:32 +04:00
parent 4bb6b8ea2c
commit 8fd8b4b132

View file

@ -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();
@ -350,6 +352,7 @@
"updated" => strtotime($line["updated"]),
"content" => $line["content"],
"feed_id" => $line["feed_id"],
"attachments" => $attachments
);
}