about summary refs log tree commit diff
diff options
context:
space:
mode:
authorrinsuki <428rinsuki+git@gmail.com>2019-03-25 23:01:09 +0900
committerEugen Rochko <eugen@zeonfederated.com>2019-03-25 15:01:09 +0100
commitd8b6431aa7dcfd1ddf7c19558ccc04779921f7d3 (patch)
treec02f3bb7c8d9c865d7c565c916f39448a8b772f7
parent94aceb85ad638cfd02fecce1aed0be5157bcb133 (diff)
Add allowfullscreen attribute to oembed iframe (#10370)
for video player full screen button.
-rw-r--r--app/serializers/oembed_serializer.rb1
1 files changed, 1 insertions, 0 deletions
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)