Show more links work with AJAX-retrieved HTML
Attachment_ajaxAction has been removed since AttachmentAction handles AJAX calls splendidly.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user