mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-22 00:13:42 +00:00
[langfilter] Prevent image proxifying while converting text for language detection
This commit is contained in:
parent
34437e368f
commit
b6d03e10b6
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue