Bug embedding twitch content on multisite

When oneboxing a link to a Twitch video https://www.twitch.tv/videos/xxxxx the content refuses to load, both in Firefox and Chrome. I can reproduce this on CDCK hosting.

Reason is that it uses the hostname for the multisite master instead of the hostname for the forum.

3 Likes

Is that only for Twitch vods ?

As far as I can see, yes.

The Twitch onebox is the only one using #{options[:hostname]} as well.
Can’t find where that is being set.

1 Like

I have created a pull request to fix this issue Fix Twitch onebox multisite issue by communiteq · Pull Request #21299 · discourse/discourse · GitHub
(Backport to stable would be appreciated :wink: )

1 Like

@flink91 merged your PR, @RGJ, this is looking good now? Good to mark the bug report as resolved now?

2 Likes

Yes, works like a charm! Thanks!

2 Likes