mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-12-19 19:56:56 +00:00
Add allowfullscreen attribute to oembed iframe (#10370)
for video player full screen button.
This commit is contained in:
parent
94aceb85ad
commit
d8b6431aa7
|
@ -43,6 +43,7 @@ class OEmbedSerializer < ActiveModel::Serializer
|
||||||
style: 'max-width: 100%; border: 0',
|
style: 'max-width: 100%; border: 0',
|
||||||
width: width,
|
width: width,
|
||||||
height: height,
|
height: height,
|
||||||
|
allowfullscreen: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
content_tag(:iframe, nil, attributes) + content_tag(:script, nil, src: full_asset_url('embed.js', skip_pipeline: true), async: true)
|
content_tag(:iframe, nil, attributes) + content_tag(:script, nil, src: full_asset_url('embed.js', skip_pipeline: true), async: true)
|
||||||
|
|
Loading…
Reference in a new issue