summaryrefslogtreecommitdiff
path: root/classes/api.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-08-14 17:04:14 +0300
committerAndrew Dolgov <[email protected]>2019-08-14 17:04:14 +0300
commitd4df57e1a4a54cfa5bc303eaae3716af2cab1b17 (patch)
tree7ccc58b6cf9d1b703ca287658f38976d0d8cb052 /classes/api.php
parent68e2b05f657dca2a389cb9d585215c126e5da290 (diff)
Article::get_article_image() - also return stream URI if possible
Diffstat (limited to 'classes/api.php')
-rwxr-xr-xclasses/api.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/classes/api.php b/classes/api.php
index 0c5c30135..44c9841ce 100755
--- a/classes/api.php
+++ b/classes/api.php
@@ -803,7 +803,11 @@ class API extends Handler {
}
$headline_row["content"] = DiskCache::rewriteUrls($headline_row['content']);
- $headline_row["flavor_image"] = Article::get_article_image($enclosures, $line["content"], $line["site_url"]);
+
+ list ($flavor_image, $flavor_stream) = Article::get_article_image($enclosures, $line["content"], $line["site_url"]);
+
+ $headline_row["flavor_image"] = $flavor_image;
+ $headline_row["flavor_stream"] = $flavor_stream;
array_push($headlines, $headline_row);
}