TASVideos / tasvideos

The code for the live TASVideos website
https://tasvideos.org/
GNU General Public License v3.0
63 stars 29 forks source link

Prevent forum embeds linking out to a YouTube short (when it occours). #1879

Closed Spikestuff closed 2 weeks ago

Spikestuff commented 3 weeks ago

Honestly don't know if it's possible, but I noticed it here.

nattthebear commented 3 weeks ago

The forum markup was:

[video=384x540]https://youtu.be/WjkUz31hwms[/video]

The generated HTML was:

<iframe width=384 height=540
src="https://www.youtube.com/embed/WjkUz31hwms"
frameborder=0
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen
class="mw-100"></iframe>
<a href="https://youtu.be/WjkUz31hwms" rel="noopener external">Link to video</a>

Everything seems to be working correctly, and the video loads fine on my browser. What's the problem here?

adelikat commented 2 weeks ago

Is this request to stop the ability to embed? why? If someone wants to link it, we would want that functionality to work, which it seems to do

YoshiRulz commented 2 weeks ago

The links in question are in third-party code.