]> git.mxchange.org Git - friendica.git/commitdiff
Convert outgoing profile description to Markdown in Protocol\Diaspora
authorHypolite Petovan <hypolite@mrpetovan.com>
Mon, 24 Feb 2020 12:59:53 +0000 (07:59 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 24 Feb 2020 12:59:53 +0000 (07:59 -0500)
src/Content/Text/BBCode.php
src/Protocol/Diaspora.php

index 7b4b7b73de5db53db8b8a6d2ade84d05097ac1af..20a81c42a9833d141c075759ce757f11b57907f3 100644 (file)
@@ -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
index 1080a81544dbb6184a022d089e97a3d7757beb3a..57b3a9d7983d3ad65af3ccd634510aa3a6977d5c 100644 (file)
@@ -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 = '';