]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Restore lost addition of inline HTML attachment display.
authorBrion Vibber <brion@pobox.com>
Thu, 25 Mar 2010 21:31:22 +0000 (14:31 -0700)
committerBrion Vibber <brion@pobox.com>
Thu, 25 Mar 2010 21:31:22 +0000 (14:31 -0700)
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();
                 }