mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 15:15:56 +00:00
api: don't try to pass null site_url to Article::_get_image()
This commit is contained in:
@@ -792,7 +792,7 @@ class API extends Handler {
|
|||||||
|
|
||||||
list ($flavor_image, $flavor_stream, $flavor_kind) = Article::_get_image($enclosures,
|
list ($flavor_image, $flavor_stream, $flavor_kind) = Article::_get_image($enclosures,
|
||||||
$line["content"], // unsanitized
|
$line["content"], // unsanitized
|
||||||
$line["site_url"],
|
$line["site_url"] ?? "", // could be null if archived article
|
||||||
$headline_row);
|
$headline_row);
|
||||||
|
|
||||||
$headline_row["flavor_image"] = $flavor_image;
|
$headline_row["flavor_image"] = $flavor_image;
|
||||||
|
|||||||
Reference in New Issue
Block a user