forked from GNUsocial/gnu-social
Restore lost addition of inline HTML attachment display.
This commit is contained in:
parent
c066e5285c
commit
e174a7211d
@ -330,6 +330,15 @@ class Attachment extends AttachmentListItem
|
|||||||
$this->out->element('param', array('name' => 'autoStart', 'value' => 1));
|
$this->out->element('param', array('name' => 'autoStart', 'value' => 1));
|
||||||
$this->out->elementEnd('object');
|
$this->out->elementEnd('object');
|
||||||
break;
|
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:
|
default:
|
||||||
$this->showFallback();
|
$this->showFallback();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user