From: Hypolite Petovan Date: Thu, 20 Jan 2022 14:23:31 +0000 (-0500) Subject: [langfilter] Prevent image proxifying while converting text for language detection X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b6d03e10b687708ea0d1c55e06f08a822ede72a0;p=friendica-addons.git [langfilter] Prevent image proxifying while converting text for language detection --- diff --git a/langfilter/langfilter.php b/langfilter/langfilter.php index 9d7b20a9..a9b76265 100644 --- a/langfilter/langfilter.php +++ b/langfilter/langfilter.php @@ -122,7 +122,7 @@ function langfilter_prepare_body_content_filter(App $a, &$hook_data) $naked_body = strip_tags( $hook_data['item']['rendered-html'] ??''?: // Equivalent of !empty() - BBCode::convert($hook_data['item']['body'], false, BBCode::INTERNAL, true) + BBCode::convert($hook_data['item']['body'], false, BBCode::ACTIVITYPUB, true) ); $naked_body = preg_replace('#\s+#', ' ', trim($naked_body));