1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2025-03-13 21:18:09 +01:00

Add allowfullscreen attribute to oembed iframe ()

for video player full screen button.
This commit is contained in:
rinsuki 2019-03-25 23:01:09 +09:00 committed by Eugen Rochko
parent 94aceb85ad
commit d8b6431aa7

View file

@ -43,6 +43,7 @@ class OEmbedSerializer < ActiveModel::Serializer
style: 'max-width: 100%; border: 0',
width: width,
height: height,
allowfullscreen: true,
}
content_tag(:iframe, nil, attributes) + content_tag(:script, nil, src: full_asset_url('embed.js', skip_pipeline: true), async: true)