mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 23:15:55 +00:00
api: add attachment information in getArticle
This commit is contained in:
@@ -331,6 +331,8 @@
|
|||||||
WHERE id = '$article_id' AND ref_id = id AND owner_uid = " .
|
WHERE id = '$article_id' AND ref_id = id AND owner_uid = " .
|
||||||
$_SESSION["uid"] ;
|
$_SESSION["uid"] ;
|
||||||
|
|
||||||
|
$attachments = get_article_enclosures($link, $article_id);
|
||||||
|
|
||||||
$result = db_query($link, $query);
|
$result = db_query($link, $query);
|
||||||
|
|
||||||
$article = array();
|
$article = array();
|
||||||
@@ -349,7 +351,8 @@
|
|||||||
"author" => $line["author"],
|
"author" => $line["author"],
|
||||||
"updated" => strtotime($line["updated"]),
|
"updated" => strtotime($line["updated"]),
|
||||||
"content" => $line["content"],
|
"content" => $line["content"],
|
||||||
"feed_id" => $line["feed_id"],
|
"feed_id" => $line["feed_id"],
|
||||||
|
"attachments" => $attachments
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user