X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fattachmentlistitem.php;h=1af89ef7b7503dec062661bc1fb88ccb479b9270;hb=d7c40e77b2001678f5836e22ba3369b958a8352c;hp=8c637d28df895a624a43b1a5ae007e07f940921c;hpb=202eaa53e041da003202a9db29b01f80b946c581;p=quix0rs-gnu-social.git diff --git a/lib/attachmentlistitem.php b/lib/attachmentlistitem.php index 8c637d28df..1af89ef7b7 100644 --- a/lib/attachmentlistitem.php +++ b/lib/attachmentlistitem.php @@ -159,7 +159,8 @@ class AttachmentListItem extends Widget break; case 'text/html': - if (!empty($this->attachment->filename) && common_config('attachments', 'show_html')) { + if (!empty($this->attachment->filename) + && (StatusNet::isAjax() || common_config('attachments', 'show_html'))) { // Locally-uploaded HTML. Scrub and display inline. $this->showHtmlFile($this->attachment); break;