mirror of
https://github.com/friendica/friendica
synced 2024-12-23 16:00:16 +00:00
Convert outgoing profile description to Markdown in Protocol\Diaspora
This commit is contained in:
parent
c147446c93
commit
0f85f5d167
2 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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 = '';
|
||||
|
|
Loading…
Reference in a new issue