]> git.mxchange.org Git - friendica.git/blobdiff - mod/cal.php
Abuse mail received because of "unusual traffic"
[friendica.git] / mod / cal.php
index 708d067d9fbe4b04b7f8e54ebec958a3471f9e68..4b90b02cd845474ea4988d6444428f15e7b4582e 100644 (file)
@@ -26,6 +26,7 @@
 use Friendica\App;
 use Friendica\Content\Feature;
 use Friendica\Content\Nav;
+use Friendica\Content\Text\BBCode;
 use Friendica\Content\Widget;
 use Friendica\Core\Renderer;
 use Friendica\Core\Session;
@@ -70,14 +71,14 @@ function cal_init(App $a)
 
        $account_type = Contact::getAccountType($profile);
 
-       $tpl = Renderer::getMarkupTemplate("widget/vcard.tpl");
+       $tpl = Renderer::getMarkupTemplate('widget/vcard.tpl');
 
        $vcard_widget = Renderer::replaceMacros($tpl, [
                '$name' => $profile['name'],
                '$photo' => $profile['photo'],
                '$addr' => $profile['addr'] ?: '',
                '$account_type' => $account_type,
-               '$about' => $profile['about'] ?: '',
+               '$about' => BBCode::convert($profile['about']),
        ]);
 
        $cal_widget = Widget\CalendarExport::getHTML();