1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 20:25:57 +00:00

Article::get_article_image() - also return stream URI if possible

This commit is contained in:
Andrew Dolgov
2019-08-14 17:04:14 +03:00
parent 68e2b05f65
commit d4df57e1a4
3 changed files with 30 additions and 10 deletions

View File

@@ -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);
}