From 0f85f5d16729803401f917641199e376f4bfce4d Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 24 Feb 2020 07:59:53 -0500 Subject: [PATCH] Convert outgoing profile description to Markdown in Protocol\Diaspora --- src/Content/Text/BBCode.php | 2 -- src/Protocol/Diaspora.php | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) 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 = ''; -- 2.39.5