From b6d03e10b687708ea0d1c55e06f08a822ede72a0 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Thu, 20 Jan 2022 09:23:31 -0500 Subject: [PATCH] [langfilter] Prevent image proxifying while converting text for language detection --- langfilter/langfilter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.43.5