From: Hypolite Petovan Date: Mon, 24 Feb 2020 12:59:53 +0000 (-0500) Subject: Convert outgoing profile description to Markdown in Protocol\Diaspora X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0f85f5d16729803401f917641199e376f4bfce4d;p=friendica.git Convert outgoing profile description to Markdown in Protocol\Diaspora --- diff --git a/src/Content/Text/BBCode.php b/src/Content/Text/BBCode.php index 7b4b7b73de..20a81c42a9 100644 --- a/src/Content/Text/BBCode.php +++ b/src/Content/Text/BBCode.php @@ -2004,8 +2004,6 @@ class BBCode */ public static function toMarkdown($text, $for_diaspora = true) { - $a = DI::app(); - $original_text = $text; // Since Diaspora is creating a summary for links, this function removes them before posting diff --git a/src/Protocol/Diaspora.php b/src/Protocol/Diaspora.php index 1080a81544..57b3a9d798 100644 --- a/src/Protocol/Diaspora.php +++ b/src/Protocol/Diaspora.php @@ -4135,7 +4135,7 @@ class Diaspora $dob = DateTimeFormat::utc($year . '-' . $month . '-'. $day, 'Y-m-d'); } - $about = BBCode::toPlaintext($profile['about']); + $about = BBCode::toMarkdown($profile['about']); $location = Profile::formatLocation($profile); $tags = '';