]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/attachmentlist.php
Restore lost addition of inline HTML attachment display.
[quix0rs-gnu-social.git] / lib / attachmentlist.php
index c6261dea5986ccfe5bfa38e28d98ccc9b0ada3ab..43f836e15089dad0503ccad52e2fe236389d687b 100644 (file)
@@ -330,6 +330,15 @@ class Attachment extends AttachmentListItem
                     $this->out->element('param', array('name' => 'autoStart', 'value' => 1));
                     $this->out->elementEnd('object');
                     break;
+
+                case 'text/html':
+                    if ($this->attachment->filename) {
+                        // Locally-uploaded HTML. Scrub and display inline.
+                        $this->showHtmlFile($this->attachment);
+                        break;
+                    }
+                    // Fall through to default.
+
                 default:
                     $this->showFallback();
                 }