Merge pull request #1230 from MrPetovan/task/langfilter-improve

[langfilter] Prevent image proxifying while converting text for language detection
pull/1232/head
Tobias Diekershoff 2022-01-20 19:10:15 +01:00 committed by GitHub
commit 5a236d72b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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