[langfilter] Fix namespacing to refer to Text\BBCode

pull/591/head
Hypolite Petovan 2018-04-21 18:47:18 -04:00
parent eafe9d68b0
commit 8e8bb8e918
1 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@
*/ */
use Friendica\App; use Friendica\App;
use Friendica\Content\Text\BBCode;
use Friendica\Core\Addon; use Friendica\Core\Addon;
use Friendica\Core\L10n; use Friendica\Core\L10n;
use Friendica\Core\PConfig; use Friendica\Core\PConfig;
@ -134,7 +135,7 @@ function langfilter_prepare_body_content_filter(App $a, &$hook_data)
return; return;
} }
$naked_body = Text\BBCode::toPlaintext($hook_data['item']['body'], false); $naked_body = BBCode::toPlaintext($hook_data['item']['body'], false);
// Don't filter if body lenght is below minimum // Don't filter if body lenght is below minimum
$minlen = PConfig::get(local_user(), 'langfilter', 'minlength', 32); $minlen = PConfig::get(local_user(), 'langfilter', 'minlength', 32);