summaryrefslogtreecommitdiff
path: root/api/index.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-07-18 17:15:32 +0400
committerAndrew Dolgov <[email protected]>2010-07-18 17:15:32 +0400
commit8fd8b4b132b59a397d3e761a163e1bf1fcc03548 (patch)
tree06764a8ba5118e77d1bbe0c08fc7d201d3730d21 /api/index.php
parent4bb6b8ea2c4a2d2a6d9c2302a75e62862b771499 (diff)
api: add attachment information in getArticle
Diffstat (limited to 'api/index.php')
-rw-r--r--api/index.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/api/index.php b/api/index.php
index 8e6400a00..1faf9a9fd 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
);
}