Have links to YouTube been disabled?

I’ve seen a few links to this thread from other threads, but the information is a bit scattershot, so I think it’s worth summarizing.

The bug occurs because Discourse now sees a YouTube preview–that is, the inline video as compared to a bare link–as a “media item”. We don’t allow media items on this site for cost reasons, but in this case it’s a bug because the video is hosted elsewhere. And this is new behavior.

Discourse takes a few seconds to convert a bare link into a preview. That is the window of opportunity for a video post. So one fix is to just paste in your video links at the very end, and click “reply” as soon as you can. It will work if you click the button before the image appears in the preview.

You can extend that window by hiding the preview box (the “<<” button on desktop) beforehand. But once you post, the link will be converted, and you will be unable to either edit your post or post the link again.

The preview is based on the exact text of the URL. This is global, so if someone else posted the same URL anywhere else, you’ll be blocked because the preview has already been generated. But, you can bypass this by tweaking the URL slightly. On YouTube, you can always append a “&1”, “&2”, etc. to the end, and just keep incrementing if you need a new one (say, if you want to edit your post a bunch of times).

For anyone that’s interested in posting videos at all, just paste the YouTube link on its very own line. Discourse will do the rest. For example, your post should look something like:

Here's that cute cat video:
https://www.youtube.com/watch?v=eYlTO1jP_BY
Any thoughts?

If you need to edit your post, and get blocked by the bug above, then tweak the URL like so:

Here's that cute cat video:
https://www.youtube.com/watch?v=eYlTO1jP_BY&1
Any thoughts?