]> git.mxchange.org Git - friendica.git/commitdiff
Simplify plaintext creation
authorMichael <heluecht@pirati.ca>
Sun, 16 Jul 2023 09:32:17 +0000 (09:32 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 16 Jul 2023 09:32:17 +0000 (09:32 +0000)
src/Core/System.php

index 602d85c83c7636134b91777c58ae868ef50ecae2..f1554834632b3fbcb764e336593b93b4ce4faaa8 100644 (file)
@@ -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) {