diff --git a/mod/cal.php b/mod/cal.php index 708d067d9f..edcbaa7e8f 100644 --- a/mod/cal.php +++ b/mod/cal.php @@ -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(); diff --git a/mod/common.php b/mod/common.php index 436d8bb559..6e923fd19b 100644 --- a/mod/common.php +++ b/mod/common.php @@ -63,7 +63,7 @@ function common_content(App $a) $contact = DBA::selectFirst('contact', ['name', 'url', 'photo', 'uid', 'id'], ['self' => true, 'uid' => $uid]); if (DBA::isResult($contact)) { - $vcard_widget = Renderer::replaceMacros(Renderer::getMarkupTemplate("widget/vcard.tpl"), [ + $vcard_widget = Renderer::replaceMacros(Renderer::getMarkupTemplate('widget/vcard.tpl'), [ '$name' => $contact['name'], '$photo' => $contact['photo'], 'url' => 'contact/' . $cid diff --git a/mod/photos.php b/mod/photos.php index e9ef92cebb..c683cc086a 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -74,14 +74,14 @@ function photos_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'] ?? ''), ]); $albums = Photo::getAlbums($a->data['user']['uid']); diff --git a/mod/videos.php b/mod/videos.php index 8d666b8b6b..3cb2b84bcd 100644 --- a/mod/videos.php +++ b/mod/videos.php @@ -22,6 +22,7 @@ use Friendica\App; use Friendica\Content\Nav; use Friendica\Content\Pager; +use Friendica\Content\Text\BBCode; use Friendica\Core\Renderer; use Friendica\Core\Session; use Friendica\Database\DBA; @@ -59,14 +60,14 @@ function videos_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'] ?? ''), ]); // If not there, create 'aside' empty diff --git a/view/templates/profile/vcard.tpl b/view/templates/profile/vcard.tpl index b8fc807fae..2b11bc4a30 100644 --- a/view/templates/profile/vcard.tpl +++ b/view/templates/profile/vcard.tpl @@ -5,7 +5,7 @@ {{if $profile.addr}}