Convert outgoing profile description to Markdown in Protocol\Diaspora
This commit is contained in:
@@ -2004,8 +2004,6 @@ class BBCode
|
|||||||
*/
|
*/
|
||||||
public static function toMarkdown($text, $for_diaspora = true)
|
public static function toMarkdown($text, $for_diaspora = true)
|
||||||
{
|
{
|
||||||
$a = DI::app();
|
|
||||||
|
|
||||||
$original_text = $text;
|
$original_text = $text;
|
||||||
|
|
||||||
// Since Diaspora is creating a summary for links, this function removes them before posting
|
// 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');
|
$dob = DateTimeFormat::utc($year . '-' . $month . '-'. $day, 'Y-m-d');
|
||||||
}
|
}
|
||||||
|
|
||||||
$about = BBCode::toPlaintext($profile['about']);
|
$about = BBCode::toMarkdown($profile['about']);
|
||||||
|
|
||||||
$location = Profile::formatLocation($profile);
|
$location = Profile::formatLocation($profile);
|
||||||
$tags = '';
|
$tags = '';
|
||||||
|
|||||||
Reference in New Issue
Block a user