# How to avoid the YouTube posting bug

**URL:** <https://boards.straightdope.com/t/how-to-avoid-the-youtube-posting-bug/1007499>\
**Category:** Site Feedback\
**Tags:** sdmb\_rules-and-notes\
**Created:** [September 20, 2024, 12:46am UTC](https://boards.straightdope.com/t/how-to-avoid-the-youtube-posting-bug/1007499 "2024-09-20T00:46:34Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Dr.Strangelove](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/dr.strangelove/32/6613_2.png) [@Dr.Strangelove](https://boards.straightdope.com/u/Dr.Strangelove)\
**Post date:** [October 14, 2024, 6:41pm UTC](https://boards.straightdope.com/t/how-to-avoid-the-youtube-posting-bug/1007499/23 "2024-10-14T18:41:37Z")

</div>

That’s a little hard to explain. _Maybe_ you’ve just gotten unlucky, but I wonder what happens if you pick a really random YouTube video and post it in one of the test threads. It really shouldn’t be a problem if the preview is hidden.

Does the &1 workaround work for you?

---

<div class="post-metadata">

**Author:** ![SCAdian](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/scadian/32/3292_2.png) [@SCAdian](https://boards.straightdope.com/u/SCAdian)\
**Post date:** [October 14, 2024, 11:37pm UTC](https://boards.straightdope.com/t/how-to-avoid-the-youtube-posting-bug/1007499/24 "2024-10-14T23:37:21Z")

</div>

> [@Dr.Strangelove](#):
>
> Does the &1 workaround work for you?

Don’t know – I can never remember what symbol to put before the number. 😃

Does the method you described in the OP also work for posting photos, which Discourse also doesn’t like, or only for Youtube links?

---

<div class="post-metadata">

**Author:** ![Dr.Strangelove](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/dr.strangelove/32/6613_2.png) [@Dr.Strangelove](https://boards.straightdope.com/u/Dr.Strangelove)\
**Post date:** [October 14, 2024, 11:42pm UTC](https://boards.straightdope.com/t/how-to-avoid-the-youtube-posting-bug/1007499/25 "2024-10-14T23:42:12Z")

</div>

Discourse is mostly fine with posting photos, but it can only detect certain URL formats.

Almost any URL that ends with .jpg or .png should be recognized as a photo, as long as the link goes to a real photo and not just a page with a photo on it. Imgur and X/Twitter links will also be recognized as photos and show inline. Google photos do not in my experience.

Right-click on the photo and hit “Copy image link” or equivalent and you’ll usually get a URL that works.

What will definitely _not_ work (trick or not) is directly uploading the photo. I.e., pasting the image _data_ into the post rather than the URL to the photo. Upload to Imgur or another photo sharing site first, and past the link to that.

---

<div class="post-metadata">

**Author:** ![SCAdian](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/scadian/32/3292_2.png) [@SCAdian](https://boards.straightdope.com/u/SCAdian)\
**Post date:** [October 14, 2024, 11:51pm UTC](https://boards.straightdope.com/t/how-to-avoid-the-youtube-posting-bug/1007499/26 "2024-10-14T23:51:52Z")

</div>

> [@Dr.Strangelove](#):
>
> Right-click on the photo and hit “Copy image link” or equivalent and you’ll usually get a URL that works.

That’s what I do, but it hasn’t worked for a long, long time. The last time I was able to successfully link to a picture seems to have been just shy of a year ago.

---

<div class="post-metadata">

**Author:** ![Atamasama](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/atamasama/32/12961_2.png) [@Atamasama](https://boards.straightdope.com/u/Atamasama)\
**Post date:** [October 15, 2024, 12:16am UTC](https://boards.straightdope.com/t/how-to-avoid-the-youtube-posting-bug/1007499/27 "2024-10-15T00:16:30Z")

</div>

> [@SCAdian](#):
>
> Don’t know – I can never remember what symbol to put before the number.

I use a # myself and it works fine.

> [@SCAdian](#):
>
> The last time I was able to successfully link to a picture seems to have been just shy of a year ago.

My trick is to copy a photo on a page then paste into the address bar of the web browser. That gives me a link. I then copy that link out of the address bar and paste it into a post.

---

<div class="post-metadata">

**Author:** ![saucywench](https://avatars.discourse-cdn.com/v4/letter/s/85e7bf/32.png) [@saucywench](https://boards.straightdope.com/u/saucywench)\
**Post date:** [December 4, 2024, 6:54pm UTC](https://boards.straightdope.com/t/how-to-avoid-the-youtube-posting-bug/1007499/28 "2024-12-04T18:54:31Z")

</div>

Does # before the number always work?

The & before the number was hit and miss.

---

<div class="post-metadata">

**Author:** ![Atamasama](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/atamasama/32/12961_2.png) [@Atamasama](https://boards.straightdope.com/u/Atamasama)\
**Post date:** [December 4, 2024, 8:05pm UTC](https://boards.straightdope.com/t/how-to-avoid-the-youtube-posting-bug/1007499/29 "2024-12-04T20:05:02Z")

</div>

> [@saucywench](#):
>
> Does # before the number always work?

It has never failed in my experience, with the following caveat…

> [@saucywench](#):
>
> The & before the number was hit and miss.

It will only fail if the number has already been used.

Say you post a video and forget to close the preview pane. The preview loads and when you try to save your post, it gives an error because it says you can’t embed a video. So you close the preview pane, add a &1 and it saves successfully.

Some one later tries to post your video in another thread and get the error, they add a &1 and still get the error because you already used it.

That’s the only time I’ve seen that happen to me. Just move to another number.

---

<div class="post-metadata">

**Author:** ![saucywench](https://avatars.discourse-cdn.com/v4/letter/s/85e7bf/32.png) [@saucywench](https://boards.straightdope.com/u/saucywench)\
**Post date:** [December 5, 2024, 2:03am UTC](https://boards.straightdope.com/t/how-to-avoid-the-youtube-posting-bug/1007499/30 "2024-12-05T02:03:40Z")

</div>

Thank you!

---

<div class="post-metadata">

**Author:** ![needscoffee](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/needscoffee/32/1076_2.png) [@needscoffee](https://boards.straightdope.com/u/needscoffee)\
**Post date:** [January 24, 2025, 2:20am UTC](https://boards.straightdope.com/t/how-to-avoid-the-youtube-posting-bug/1007499/31 "2025-01-24T02:20:47Z")

</div>

test  
It worked!

---

<div class="post-metadata">

**Author:** ![LSLGuy](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/lslguy/32/5813_2.png) [@LSLGuy](https://boards.straightdope.com/u/LSLGuy)\
**Post date:** [January 24, 2025, 2:39am UTC](https://boards.straightdope.com/t/how-to-avoid-the-youtube-posting-bug/1007499/32 "2025-01-24T02:39:57Z")

</div>

I hope it was good for you. :leer: 😁

The rest of us don’t see anything too very special about your post.

---

<div class="post-metadata">

**Author:** ![Reply](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/reply/32/15952_2.png) [@Reply](https://boards.straightdope.com/u/Reply)\
**Post date:** [June 10, 2025, 12:35am UTC](https://boards.straightdope.com/t/how-to-avoid-the-youtube-posting-bug/1007499/33 "2025-06-10T00:35:01Z")

</div>

Continuing the discussion from [Has the site been having slowness issues?](https://boards.straightdope.com/t/has-the-site-been-having-slowness-issues/1019117/40):

> [@Has the site been having slowness issues?](https://boards.straightdope.com/t/has-the-site-been-having-slowness-issues/1019117/39):
>
> This makes this annoying and persistent YouTube links bug all the more maddening.

This thread was recently mentioned in another topic where we discussed Discourse self-hosting.

Anyway, about this YouTube issue… could it possibly be related to our particular combination of the default Onebox settings (“Onebox” is the Discourse name for the link preview generator) with our “no image uploads allowed” policy (which is pretty rare among Discourse forums, and possibly a contributing factor to this issue)?

If a mod happens to see this post (and this hasn’t already been tried), what if we disabled YouTube previews altogether so that copying and pasting URLs will always work, albeit without the previews? At least it wouldn’t require manual URL editing every time…

We should be able to do that by adding `youtube.com` to the `blocked onebox domains` [setting in the Discourse admin area](https://meta.discourse.org/t/configuring-and-troubleshooting-oneboxes/239715).

Apologies if that’s already been attempted… I hadn’t looked at this thread until it was pointed out in the other one.

---

<div class="post-metadata">

**Author:** ![Dr.Strangelove](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/dr.strangelove/32/6613_2.png) [@Dr.Strangelove](https://boards.straightdope.com/u/Dr.Strangelove)\
**Post date:** [June 10, 2025, 12:40am UTC](https://boards.straightdope.com/t/how-to-avoid-the-youtube-posting-bug/1007499/34 "2025-06-10T00:40:07Z")

</div>

> [@Reply](#):
>
> Anyway, about this YouTube issue… could it possibly be related to our particular combination of the default Onebox settings (“Onebox” is the Discourse name for the link preview generator) with our “no image uploads allowed” policy (which is pretty rare among Discourse forums, and possibly a contributing factor to this issue)?

Probably. But it’s still a Discourse bug. Preview images should not count as media uploads. But I anticipate that this bug has fallen under the radar at Discourse because it’s rare to disable image uploads as we have.

---

<div class="post-metadata">

**Author:** ![Reply](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/reply/32/15952_2.png) [@Reply](https://boards.straightdope.com/u/Reply)\
**Post date:** [June 10, 2025, 12:41am UTC](https://boards.straightdope.com/t/how-to-avoid-the-youtube-posting-bug/1007499/35 "2025-06-10T00:41:01Z")

</div>

I agree (with your entire analysis). This is just a workaround until/unless Discourse fixes their bug.

---

<div class="post-metadata">

**Author:** ![wolfpup](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/wolfpup/32/10618_2.png) [@wolfpup](https://boards.straightdope.com/u/wolfpup)\
**Post date:** [June 10, 2025, 12:43am UTC](https://boards.straightdope.com/t/how-to-avoid-the-youtube-posting-bug/1007499/36 "2025-06-10T00:43:39Z")

</div>

> [@Reply](#):
>
> Anyway, about this YouTube issue… could it possibly be related to our particular combination of the default Onebox settings (“Onebox” is the Discourse name for the link preview generator) with our “no image uploads allowed” policy (which is pretty rare among Discourse forums, and possibly a contributing factor to this issue)?

I think it’s been speculated that this is exactly the problem.

> [@Reply](#):
>
> If a mod happens to see this post (and this hasn’t already been tried), what if we disabled YouTube previews altogether so that copying and pasting URLs will always work, albeit without the previews? At least it wouldn’t require manual URL editing every time…

I would be strongly opposed to this, because the various workarounds to posting YouTube videos as described in this thread are very easy to do, and inline YouTube videos are very useful and convenient. My own preferred workaround doesn’t usually require any URL editing – it’s to position the mouse cursor over the “Reply” button, paste the YouTube URL, and then **immediately** click the “Reply” button, before Discourse has a chance to create the preview and deny the posting.

---

<div class="post-metadata">

**Author:** ![Reply](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/reply/32/15952_2.png) [@Reply](https://boards.straightdope.com/u/Reply)\
**Post date:** [June 10, 2025, 12:47am UTC](https://boards.straightdope.com/t/how-to-avoid-the-youtube-posting-bug/1007499/37 "2025-06-10T00:47:28Z")

</div>

> [@wolfpup](#):
>
> I would be strongly opposed to this, because the various workarounds to posting YouTube videos as described in this thread are very easy to do, and inline YouTube videos are very useful and convenient

Gotcha. Thank you for explaining, and nevermind then.

---

<div class="post-metadata">

**Author:** ![Reply](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/reply/32/15952_2.png) [@Reply](https://boards.straightdope.com/u/Reply)\
**Post date:** [June 10, 2025, 1:12am UTC](https://boards.straightdope.com/t/how-to-avoid-the-youtube-posting-bug/1007499/38 "2025-06-10T01:12:41Z")

</div>

I couldn’t find an official bug report about this on the Discourse forum (did we ever send one?), so I made a new report there: [YouTube link previews broken if user is not part of "Embedded media post allowed groups" - Bug - Discourse Meta](https://meta.discourse.org/t/youtube-link-previews-broken-if-user-is-not-part-of-embedded-media-post-allowed-groups/369494)

---

<div class="post-metadata">

**Author:** ![wolfpup](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/wolfpup/32/10618_2.png) [@wolfpup](https://boards.straightdope.com/u/wolfpup)\
**Post date:** [June 10, 2025, 1:21am UTC](https://boards.straightdope.com/t/how-to-avoid-the-youtube-posting-bug/1007499/39 "2025-06-10T01:21:44Z")

</div>

My understanding is that sometime back over a year ago, Ed had agreed to escalate the problem with Discourse technical support. I would have to assume that the response was that there was no practical solution for our particular rather unique configuration.

I rather suspect that a fix wouldn’t be that hard, but that Discourse developers aren’t fond of putting in special-case exceptions which tend to make for aesthetically ugly code that becomes harder to maintain.

---

<div class="post-metadata">

**Author:** ![Atamasama](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/atamasama/32/12961_2.png) [@Atamasama](https://boards.straightdope.com/u/Atamasama)\
**Post date:** [June 10, 2025, 1:32am UTC](https://boards.straightdope.com/t/how-to-avoid-the-youtube-posting-bug/1007499/40 "2025-06-10T01:32:35Z")

</div>

So, we’re weird and have to suffer for being weird.

Something that I’m sure many posters on this board can individually relate to.

(I know I can.)

---

<div class="post-metadata">

**Author:** ![Jackmannii](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/jackmannii/32/311_2.png) [@Jackmannii](https://boards.straightdope.com/u/Jackmannii)\
**Post date:** [June 10, 2025, 1:59am UTC](https://boards.straightdope.com/t/how-to-avoid-the-youtube-posting-bug/1007499/41 "2025-06-10T01:59:01Z")

</div>

I haven’t had luck getting rid of the preview window and succeeding in posting a YouTube video, testing again:

[![](https://i.ytimg.com/vi/8IBg87nlY1s/hqdefault.jpg?sqp=-oaymwEmCOADEOgC8quKqQMa8AEB-AHeA4AC6AKKAgwIABABGH8gGigTMA8=&rs=AOn4CLDyXLVmlniwUJNFx6j3FoDUJoE2Xg "Meteors - Hell ain't hot enough for me") ](https://www.youtube.com/watch?v=8IBg87nlY1s)

Well by gum, it works. Edited with &2.

---

<div class="post-metadata">

**Author:** ![wolfpup](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/wolfpup/32/10618_2.png) [@wolfpup](https://boards.straightdope.com/u/wolfpup)\
**Post date:** [June 10, 2025, 2:13am UTC](https://boards.straightdope.com/t/how-to-avoid-the-youtube-posting-bug/1007499/42 "2025-06-10T02:13:04Z")

</div>

> [@Jackmannii](#):
>
> Well by gum, it works. Edited with &2.

Editing the URL is a nice trick if that YouTube URL has been posted before, but otherwise it’s not necessary. You just have to be very quick between pasting the URL and clicking “Reply”, as I noted in post #34. It’s basically a two-handed or two-pawed operation that requires the “Reply” button to be hit immediately after the URL is posted, with no more than a fraction of a second delay. Once the URL is processed in the “Preview” window, posting will no longer work.

[Previous page](https://boards.straightdope.com/t/how-to-avoid-the-youtube-posting-bug/1007499.md?page=1)

[Next page](https://boards.straightdope.com/t/how-to-avoid-the-youtube-posting-bug/1007499.md?page=3)
