Convert outgoing profile description to Markdown in Protocol\Diaspora

This commit is contained in:
Hypolite Petovan 2020-02-24 07:59:53 -05:00
parent c147446c93
commit 0f85f5d167
2 changed files with 1 additions and 3 deletions

View 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

View 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 = '';