From 5ddd2f3ab5eb0cdaf499e9a4a8ad96300ef87302 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 3 Jun 2021 05:18:22 +0000 Subject: [PATCH] Coding standards --- src/Module/Api/Mastodon/Instance/Rules.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);