forked from GNUsocial/gnu-social
Some comparisons were incorrect (text/html;charset=utf-8 etc.)
This commit is contained in:
parent
1981cb7662
commit
e52275e37f
@ -174,7 +174,7 @@ class AttachmentListItem extends Widget
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
unset($thumb); // there's no need carrying this along
|
unset($thumb); // there's no need carrying this along
|
||||||
switch ($this->attachment->mimetype) {
|
switch (common_bare_mime($this->attachment->mimetype)) {
|
||||||
case 'text/plain':
|
case 'text/plain':
|
||||||
$this->element('div', ['class'=>'e-content plaintext'], file_get_contents($this->attachment->getPath()));
|
$this->element('div', ['class'=>'e-content plaintext'], file_get_contents($this->attachment->getPath()));
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user