diff options
author | Andrew Dolgov <[email protected]> | 2019-08-14 17:04:14 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2019-08-14 17:04:14 +0300 |
commit | d4df57e1a4a54cfa5bc303eaae3716af2cab1b17 (patch) | |
tree | 7ccc58b6cf9d1b703ca287658f38976d0d8cb052 /classes/api.php | |
parent | 68e2b05f657dca2a389cb9d585215c126e5da290 (diff) |
Article::get_article_image() - also return stream URI if possible
Diffstat (limited to 'classes/api.php')
-rwxr-xr-x | classes/api.php | 6 |
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); } |