]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/Oembed/OembedPlugin.php
Don't show or preview text/html attachments
[quix0rs-gnu-social.git] / plugins / Oembed / OembedPlugin.php
index 27f299b5ebf454f44a0b766ba945a179a1c6b46b..5413ae94cd6cc3868536a35fb952763934c93900 100644 (file)
@@ -160,7 +160,7 @@ class OembedPlugin extends Plugin
         case 'rich':
         case 'video':
         case 'link':
-            if (!empty($oembed->html)) {
+            if (!empty($oembed->html) && common_config('attachments', 'show_html')) {
                 require_once INSTALLDIR.'/extlib/htmLawed/htmLawed.php';
                 $config = array(
                     'safe'=>1,