diff --git a/lib/attachmentlistitem.php b/lib/attachmentlistitem.php index 133756147c..934c5f74dd 100644 --- a/lib/attachmentlistitem.php +++ b/lib/attachmentlistitem.php @@ -174,7 +174,7 @@ class AttachmentListItem extends Widget default: unset($thumb); // there's no need carrying this along - switch ($this->attachment->mimetype) { + switch (common_bare_mime($this->attachment->mimetype)) { case 'text/plain': $this->element('div', ['class'=>'e-content plaintext'], file_get_contents($this->attachment->getPath())); break;