]> git.mxchange.org Git - friendica-addons.git/commitdiff
[langfilter] Prevent image proxifying while converting text for language detection
authorHypolite Petovan <hypolite@mrpetovan.com>
Thu, 20 Jan 2022 14:23:31 +0000 (09:23 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Thu, 20 Jan 2022 14:23:31 +0000 (09:23 -0500)
langfilter/langfilter.php

index 9d7b20a92c7ba9569517531f6dc08b3f382b539b..a9b762657874c6205f5ec742e720dd6ae6e60343 100644 (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));