Improved instagram embed code
authorMarcel Werk <burntime@woltlab.com>
Fri, 27 Oct 2017 11:54:56 +0000 (13:54 +0200)
committerMarcel Werk <burntime@woltlab.com>
Fri, 27 Oct 2017 11:54:56 +0000 (13:54 +0200)
com.woltlab.wcf/mediaProvider.xml

index 36df632e19e49a0c37f2b0670ed93ddab224e0d0..7fc1b645c1c9b471010fb6ea49b2639a3e2d78c7 100644 (file)
@@ -53,7 +53,7 @@ https?://vimeo\.com/groups/[^/]+/videos/(?P<ID>\d+)]]></regex>
                <provider name="instagram">
                        <title>Instagram</title>
                        <regex><![CDATA[https?://(?:www\.)?(?:instagram\.com|instagr\.am)/p/(?<ID>[a-zA-Z0-9_-]+)]]></regex>
-                       <html><![CDATA[<iframe src="//instagram.com/p/{$ID}/embed/" width="560" height="640" frameborder="0" scrolling="no" allowtransparency="true"></iframe>]]></html>
+                       <html><![CDATA[<blockquote class="instagram-media" data-instgrm-version="7"><a href="https://www.instagram.com/p/{$ID}/"></a></blockquote><script async defer src="//platform.instagram.com/en_US/embeds.js"></script>]]></html>
                </provider>
                
                <provider name="imgur">