about summary refs log tree commit diff
path: root/app/serializers
diff options
context:
space:
mode:
authorbeatrix <beatrix.bitrot@gmail.com>2017-09-10 13:34:14 -0400
committerGitHub <noreply@github.com>2017-09-10 13:34:14 -0400
commitc9df53044a333276853f7dc7ef2aed6d48df087f (patch)
tree011ea44fc94bcff6f8ec4e23c3edf887359243d2 /app/serializers
parent3dff74eecf5387b92b862893248710d2efb90eec (diff)
parent67ad4533732f2e5cfc8c7f7ad3abaf7a5eb2647b (diff)
Merge pull request #142 from glitch-soc/sync/upstream-1.6.0rc4
Merge with 1.6.0rc4

STRAP IN BUCKAWOO HERE WE GO AGAIN
Diffstat (limited to 'app/serializers')
-rw-r--r--app/serializers/oembed_serializer.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/serializers/oembed_serializer.rb b/app/serializers/oembed_serializer.rb
index bd05da585..af03fd47a 100644
--- a/app/serializers/oembed_serializer.rb
+++ b/app/serializers/oembed_serializer.rb
@@ -40,12 +40,12 @@ class OEmbedSerializer < ActiveModel::Serializer
     attributes = {
       src: embed_short_account_status_url(object.account, object),
       class: 'mastodon-embed',
-      style: 'max-width: 100%; border: none;',
+      style: 'max-width: 100%; border: 0',
       width: width,
       height: height,
     }
 
-    content_tag :iframe, nil, attributes
+    content_tag(:iframe, nil, attributes) + content_tag(:script, nil, src: full_asset_url('embed.js'), async: true)
   end
 
   def width