Show more links work with AJAX-retrieved HTML
Attachment_ajaxAction has been removed since AttachmentAction handles AJAX calls splendidly.
This commit is contained in:
@@ -160,7 +160,8 @@ class OembedPlugin extends Plugin
|
||||
case 'rich':
|
||||
case 'video':
|
||||
case 'link':
|
||||
if (!empty($oembed->html) && common_config('attachments', 'show_html')) {
|
||||
if (!empty($oembed->html)
|
||||
&& (StatusNet::isAjax() || common_config('attachments', 'show_html'))) {
|
||||
require_once INSTALLDIR.'/extlib/htmLawed/htmLawed.php';
|
||||
$config = array(
|
||||
'safe'=>1,
|
||||
|
Reference in New Issue
Block a user