[langfilter] Fix namespacing to refer to Text\BBCode
This commit is contained in:
parent
eafe9d68b0
commit
8e8bb8e918
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue