This website works better with JavaScript.
Home
Explore
Help
Sign In
nekobus
/
mastodon_neko
forked from
closed-social/mastodon
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
Add allowfullscreen attribute to oembed iframe (
#10370
)
for video player full screen button.
master
rinsuki
5 years ago
committed by
Eugen Rochko
parent
94aceb85ad
commit
d8b6431aa7
1 changed files
with
1 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
app/serializers/oembed_serializer.rb
+ 1
- 0
app/serializers/oembed_serializer.rb
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
)
Write
Preview
Loading…
Cancel
Save