This repository has been archived by the owner on Jan 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 67
Vapid server crashes when using "unfurl" #134
Labels
Comments
@lsanwick Strange. I'm running a fairly similar setup, but can't seem to replicate it:
I don't think it should matter, but can you try updating to Vapid v0.8.1? |
Upgrading to latest ( |
I'm getting around it for now by pasting an embed code into a <script>
function htmlDecode(input){
var e = document.createElement('textarea');
e.innerHTML = input;
// handle case of empty input
return e.childNodes.length === 0 ? "" : e.childNodes[0].nodeValue;
}
var videos = document.querySelectorAll('.responsive-video');
videos.forEach(v => {
v.innerHTML = htmlDecode(v.innerHTML);
});
</script> |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
Tried to add a new YouTube video link using the
unfurl=true
option, and the server crashes as soon as I try to load the page rendering that link.Server Error:
To Reproduce
Steps to reproduce the behavior:
{{mylink type=link unfurl=true}}
to your templatehttps://www.youtube.com/watch?v=dQw4w9WgXcQ
Expected behavior
A YouTube embedded video should appear.
Your Environment
Include relevant details, so others can replicate the issue.
The text was updated successfully, but these errors were encountered: