]> git.mxchange.org Git - friendica.git/commitdiff
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 fd209911083ed5e3019e2f8c9fcaffbc025b3235..1080a81544dbb6184a022d089e97a3d7757beb3a 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 = '';