diff options
author | Andrew Dolgov <[email protected]> | 2021-03-12 17:15:45 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-03-12 17:15:45 +0300 |
commit | fcce1c443eecae20bd8a4cf08463bbff93d974dd (patch) | |
tree | efdfa72536e5bac57f46162ba005cd1ccd88a403 | |
parent | bc73bf0f674820ad75723d4e3269dd8d51d98433 (diff) |
api: don't try to pass null site_url to Article::_get_image()
-rwxr-xr-x | classes/api.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/api.php b/classes/api.php index a1ed7968c..407afabad 100755 --- a/classes/api.php +++ b/classes/api.php @@ -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; |