From: Michael Date: Thu, 3 Jun 2021 05:18:22 +0000 (+0000) Subject: Coding standards X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5ddd2f3ab5eb0cdaf499e9a4a8ad96300ef87302;p=friendica.git Coding standards --- diff --git a/src/Module/Api/Mastodon/Instance/Rules.php b/src/Module/Api/Mastodon/Instance/Rules.php index fa5d6d8b60..9b7d2dc77f 100644 --- a/src/Module/Api/Mastodon/Instance/Rules.php +++ b/src/Module/Api/Mastodon/Instance/Rules.php @@ -40,10 +40,11 @@ class Rules extends BaseApi public static function rawContent(array $parameters = []) { $rules = []; - $id = 0; + $id = 0; if (DI::config()->get('system', 'tosdisplay')) { $html = BBCode::convert(DI::config()->get('system', 'tostext'), false, BBCode::EXTERNAL); + $msg = HTML::toPlaintext($html, 0, true); foreach (explode("\n", $msg) as $line) { $line = trim($line);