From: Michael Date: Sun, 16 Jul 2023 09:32:17 +0000 (+0000) Subject: Simplify plaintext creation X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=01bbf4041881ae06904aa5fa5dce843fe30a1e7d;p=friendica.git Simplify plaintext creation --- diff --git a/src/Core/System.php b/src/Core/System.php index 602d85c83c..f155483463 100644 --- a/src/Core/System.php +++ b/src/Core/System.php @@ -671,9 +671,7 @@ class System if (DI::config()->get('system', 'tosdisplay')) { $rulelist = DI::config()->get('system', 'tosrules') ?: DI::config()->get('system', 'tostext'); - $html = BBCode::convertForUriId(User::getSystemUriId(), $rulelist, BBCode::EXTERNAL); - - $msg = HTML::toPlaintext($html, 0, true); + $msg = BBCode::toPlaintext($rulelist, false); foreach (explode("\n", trim($msg)) as $line) { $line = trim($line); if ($line) {