Commit d5ecbd05 authored by mmn's avatar mmn

Forgot a break in a switch when rendering attachments.

parent 99607148
......@@ -171,6 +171,7 @@ class AttachmentListItem extends Widget
switch ($this->attachment->mimetype) {
case 'text/plain':
$this->element('div', ['class'=>'e-content plaintext'], file_get_contents($this->attachment->getPath()));
break;
case 'text/html':
if (!empty($this->attachment->filename)
&& (GNUsocial::isAjax() || common_config('attachments', 'show_html'))) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment