[langfilter] Fix namespacing to refer to Text\BBCode

This commit is contained in:
Hypolite Petovan 2018-04-21 18:47:18 -04:00
parent eafe9d68b0
commit 8e8bb8e918

View File

@ -8,6 +8,7 @@
*/
use Friendica\App;
use Friendica\Content\Text\BBCode;
use Friendica\Core\Addon;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
@ -134,7 +135,7 @@ function langfilter_prepare_body_content_filter(App $a, &$hook_data)
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
$minlen = PConfig::get(local_user(), 'langfilter', 'minlength', 32);