mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: allow Twitter videos to go fullscreen
This commit is contained in:
parent
9b18ee4bba
commit
14a0879658
@ -24,7 +24,7 @@ class TwitterApi
|
|||||||
end
|
end
|
||||||
elsif m['type'] == 'video'
|
elsif m['type'] == 'video'
|
||||||
if large = m['sizes']['large']
|
if large = m['sizes']['large']
|
||||||
result << "<div class='tweet-images'><iframe class='tweet-video' src='https://twitter.com/i/videos/#{tweet['id_str']}' width='#{large['w']}' height='#{large['h']}' frameborder='0'></iframe></div>"
|
result << "<div class='tweet-images'><iframe class='tweet-video' src='https://twitter.com/i/videos/#{tweet['id_str']}' width='#{large['w']}' height='#{large['h']}' frameborder='0' allowfullscreen></iframe></div>"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user