[langfilter] Prevent image proxifying while converting text for language detection #1230

Merged
MrPetovan merged 1 commit from task/langfilter-improve into 2021.12-rc 2022-01-20 19:10:15 +01:00
Showing only changes of commit b6d03e10b6 - Show all commits

View file

@ -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));