Bugfix. URL is passed in, not object

This commit is contained in:
JC Brand 2021-09-23 21:56:32 +02:00
parent 881a9a6d27
commit 1104b28758

View File

@ -12,8 +12,8 @@ function isValidImage (image) {
return image && isDomainAllowed(image, 'allowed_image_domains') && isValidURL(image);
}
function shouldHideMediaURL (o) {
return isGIFURL(o.url) || isVideoURL(o.url) || isAudioURL(o.url);
function shouldHideMediaURL (url) {
return url && (isGIFURL(url) || isVideoURL(url) || isAudioURL(url));
}
const tpl_url_wrapper = (o, wrapped_template) =>