api: don't try to pass null site_url to Article::_get_image()

This commit is contained in:
Andrew Dolgov 2021-03-12 17:15:45 +03:00
parent bc73bf0f67
commit fcce1c443e
1 changed files with 1 additions and 1 deletions

View File

@ -792,7 +792,7 @@ class API extends Handler {
list ($flavor_image, $flavor_stream, $flavor_kind) = Article::_get_image($enclosures,
$line["content"], // unsanitized
$line["site_url"],
$line["site_url"] ?? "", // could be null if archived article
$headline_row);
$headline_row["flavor_image"] = $flavor_image;