]> cat aescling's git repositories - mastodon.git/commitdiff
Fix OpenGraph/LinkedData embeds having incorrectly-generated iframes (#16978)
authorClaire <claire.github-309c@sitedethib.com>
Sat, 13 Nov 2021 02:30:27 +0000 (03:30 +0100)
committerGitHub <noreply@github.com>
Sat, 13 Nov 2021 02:30:27 +0000 (03:30 +0100)
app/lib/link_details_extractor.rb

index 9df8a132075aedfcfe3f57f01032721c0c5d76d6..3876173e0d25716334a51e14ffaa3b6f9a8fddc1 100644 (file)
@@ -91,7 +91,7 @@ class LinkDetailsExtractor
   end
 
   def html
-    player_url.present? ? content_tag(:iframe, src: player_url, width: width, height: height, allowtransparency: 'true', scrolling: 'no', frameborder: '0') : nil
+    player_url.present? ? content_tag(:iframe, nil, src: player_url, width: width, height: height, allowtransparency: 'true', scrolling: 'no', frameborder: '0') : nil
   end
 
   def width