From: rinsuki <428rinsuki+git@gmail.com> Date: Mon, 25 Mar 2019 14:01:09 +0000 (+0900) Subject: Add allowfullscreen attribute to oembed iframe (#10370) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=d8b6431aa7dcfd1ddf7c19558ccc04779921f7d3;p=mastodon.git Add allowfullscreen attribute to oembed iframe (#10370) for video player full screen button. --- diff --git a/app/serializers/oembed_serializer.rb b/app/serializers/oembed_serializer.rb index 0c8350e2d..01689633b 100644 --- a/app/serializers/oembed_serializer.rb +++ b/app/serializers/oembed_serializer.rb @@ -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)