Fix Twitch onebox multisite issue

This commit is contained in:
Richard 2023-04-28 15:46:27 +00:00 committed by Loïc Guitaut
parent dc2223b8be
commit 22ef6a7c29
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ module Onebox
def to_html
<<~HTML
<iframe src="https://#{base_url}#{query_params}&parent=#{options[:hostname]}&autoplay=false" width="620" height="378" frameborder="0" style="overflow: hidden;" scrolling="no" allowfullscreen="allowfullscreen"></iframe>
<iframe src="https://#{base_url}#{query_params}&parent=#{Discourse.current_hostname}&autoplay=false" width="620" height="378" frameborder="0" style="overflow: hidden;" scrolling="no" allowfullscreen="allowfullscreen"></iframe>
HTML
end
end