]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/attachmentlistitem.php
Show more links work with AJAX-retrieved HTML
[quix0rs-gnu-social.git] / lib / attachmentlistitem.php
index 8c637d28df895a624a43b1a5ae007e07f940921c..1af89ef7b7503dec062661bc1fb88ccb479b9270 100644 (file)
@@ -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;