Bugfix. URL is passed in, not object
This commit is contained in:
parent
881a9a6d27
commit
1104b28758
@ -12,8 +12,8 @@ function isValidImage (image) {
|
|||||||
return image && isDomainAllowed(image, 'allowed_image_domains') && isValidURL(image);
|
return image && isDomainAllowed(image, 'allowed_image_domains') && isValidURL(image);
|
||||||
}
|
}
|
||||||
|
|
||||||
function shouldHideMediaURL (o) {
|
function shouldHideMediaURL (url) {
|
||||||
return isGIFURL(o.url) || isVideoURL(o.url) || isAudioURL(o.url);
|
return url && (isGIFURL(url) || isVideoURL(url) || isAudioURL(url));
|
||||||
}
|
}
|
||||||
|
|
||||||
const tpl_url_wrapper = (o, wrapped_template) =>
|
const tpl_url_wrapper = (o, wrapped_template) =>
|
||||||
|
Loading…
Reference in New Issue
Block a user