diff options
author | Mario Vavti <mario@mariovavti.com> | 2025-01-24 12:43:12 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2025-01-24 12:43:12 +0100 |
commit | 174469970a317744789551d499ef9471664a7f96 (patch) | |
tree | 57212dc89d54649cb00ee121c5060e8f8ed27d10 | |
parent | 89b254dc1c5c1f3be9a3e3406fe3cb6935c4d719 (diff) | |
download | volse-hubzilla-174469970a317744789551d499ef9471664a7f96.tar.gz volse-hubzilla-174469970a317744789551d499ef9471664a7f96.tar.bz2 volse-hubzilla-174469970a317744789551d499ef9471664a7f96.zip |
return if $furl is empty for some reason
-rw-r--r-- | include/oembed.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/oembed.php b/include/oembed.php index f52f73225..840164663 100644 --- a/include/oembed.php +++ b/include/oembed.php @@ -143,6 +143,10 @@ function oembed_fetch_url($embedurl){ $furl = ((local_channel() && $zrl) ? zid($embedurl) : $embedurl); + if (empty($furl)) { + return; + } + if($action !== 'block' && (! Config::Get('system','oembed_cache_disable'))) { $txt = Cache::get('[' . App::$videowidth . '] ' . $furl); } |