]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/Oembed/OembedPlugin.php
Show more links work with AJAX-retrieved HTML
[quix0rs-gnu-social.git] / plugins / Oembed / OembedPlugin.php
index 5413ae94cd6cc3868536a35fb952763934c93900..655505309ed38826f9836ae3f42d26cbd5ff1758 100644 (file)
@@ -160,7 +160,8 @@ class OembedPlugin extends Plugin
         case 'rich':
         case 'video':
         case 'link':
-            if (!empty($oembed->html) && common_config('attachments', 'show_html')) {
+            if (!empty($oembed->html)
+                    && (StatusNet::isAjax() || common_config('attachments', 'show_html'))) {
                 require_once INSTALLDIR.'/extlib/htmLawed/htmLawed.php';
                 $config = array(
                     'safe'=>1,