]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/attachmentlist.php
add $config['attachments']['path'] to the config.php.sample
[quix0rs-gnu-social.git] / lib / attachmentlist.php
index f6a1b59d03d8521752aa58f9ade72c1ac82d428e..41d03f8e2124b2d3a9762aad2b3963d417d6cdd8 100644 (file)
@@ -340,7 +340,12 @@ class Attachment extends AttachmentListItem
             case 'video':
             case 'link':
                 if (!empty($this->oembed->html)) {
-                    $this->out->raw($this->oembed->html);
+                    require_once INSTALLDIR.'/extlib/htmLawed/htmLawed.php';
+                    $config = array(
+                        'safe'=>1,
+                        'elements'=>'*+object+embed');
+                    $this->out->raw(htmLawed($this->oembed->html,$config));
+                    //$this->out->raw($this->oembed->html);
                 }
                 break;