show inline images

fix #77
This commit is contained in:
Matthias Pfefferle 2020-05-14 23:10:25 +02:00
parent f9223be5d7
commit 41a58ccda5

View file

@ -300,7 +300,7 @@ class Post {
$decoded_content = \html_entity_decode( $filtered_content, \ENT_QUOTES, 'UTF-8' );
$allowed_html = \apply_filters( 'activitypub_allowed_html', '<a><p><ul><ol><li><code><blockquote><pre>' );
$allowed_html = \apply_filters( 'activitypub_allowed_html', '<a><p><ul><ol><li><code><blockquote><pre><img>' );
return \trim( \preg_replace( '/[\r\n]{2,}/', '', \strip_tags( $decoded_content, $allowed_html ) ) );
}