Simplify about field conversion to plaintext in Protocol\Diaspora
authorHypolite Petovan <hypolite@mrpetovan.com>
Mon, 24 Feb 2020 01:35:36 +0000 (20:35 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 24 Feb 2020 01:35:36 +0000 (20:35 -0500)
src/Protocol/Diaspora.php

index fd20991..1080a81 100644 (file)
@@ -4135,8 +4135,7 @@ class Diaspora
                                $dob = DateTimeFormat::utc($year . '-' . $month . '-'. $day, 'Y-m-d');
                        }
 
-                       $about = $profile['about'];
-                       $about = strip_tags(BBCode::convert($about));
+                       $about = BBCode::toPlaintext($profile['about']);
 
                        $location = Profile::formatLocation($profile);
                        $tags = '';