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}}
{{$profile.addr}}
{{/if}} - {{if $profile.about}}
{{$profile.about}}
{{/if}} + {{if $profile.about}}
{{$profile.about nofilter}}
{{/if}} {{if $profile.picdate}}
{{$profile.name}}
diff --git a/view/templates/widget/vcard.tpl b/view/templates/widget/vcard.tpl index 135d90a61b..1bd0690a27 100644 --- a/view/templates/widget/vcard.tpl +++ b/view/templates/widget/vcard.tpl @@ -2,7 +2,7 @@
{{$name}}
{{if $addr}}
{{$addr}}
{{/if}} - {{if $about}}
{{$about}}
{{/if}} + {{if $about}}
{{$about nofilter}}
{{/if}} {{if $url}}
{{$name}}
{{else}} diff --git a/view/theme/duepuntozero/templates/profile/vcard.tpl b/view/theme/duepuntozero/templates/profile/vcard.tpl index 02187d9549..793b82386f 100644 --- a/view/theme/duepuntozero/templates/profile/vcard.tpl +++ b/view/theme/duepuntozero/templates/profile/vcard.tpl @@ -5,7 +5,7 @@ {{if $profile.addr}}
{{$profile.addr}}
{{/if}} - {{if $profile.about}}
{{$profile.about}}
{{/if}} + {{if $profile.about}}
{{$profile.about nofilter}}
{{/if}}
{{$profile.name}}
{{if $account_type}}
{{$account_type}}
{{/if}} diff --git a/view/theme/frio/templates/profile/vcard.tpl b/view/theme/frio/templates/profile/vcard.tpl index 2765dbc39e..4f7683dc01 100644 --- a/view/theme/frio/templates/profile/vcard.tpl +++ b/view/theme/frio/templates/profile/vcard.tpl @@ -41,7 +41,7 @@ {{if $profile.addr}}
{{include file="sub/punct_wrap.tpl" text=$profile.addr}}
{{/if}} - {{if $profile.about}}
{{$profile.about}}
{{/if}} + {{if $profile.about}}
{{$profile.about nofilter}}
{{/if}} {{if $account_type}}
({{$account_type}})
{{/if}}
diff --git a/view/theme/frio/templates/widget/vcard.tpl b/view/theme/frio/templates/widget/vcard.tpl index fa65de0dc6..210edbe441 100644 --- a/view/theme/frio/templates/widget/vcard.tpl +++ b/view/theme/frio/templates/widget/vcard.tpl @@ -30,7 +30,7 @@ {{if $account_type}}
({{$account_type}})
{{/if}} - {{if $about}}
{{$about}}
{{/if}} + {{if $about}}
{{$about nofilter}}
{{/if}} {{if $network_link}}
{{$network}}
{{$network_link nofilter}}
{{/if}} diff --git a/view/theme/quattro/templates/profile/vcard.tpl b/view/theme/quattro/templates/profile/vcard.tpl index 6f9e5cffbe..107e7850f0 100644 --- a/view/theme/quattro/templates/profile/vcard.tpl +++ b/view/theme/quattro/templates/profile/vcard.tpl @@ -17,7 +17,7 @@ {{if $profile.addr}}
{{$profile.addr}}
{{/if}} - {{if $about}}
{{$profile.about}}
{{/if}} + {{if $about}}
{{$profile.about nofilter}}
{{/if}}
{{$profile.name}}
{{if $account_type}}
{{$account_type}}
{{/if}} diff --git a/view/theme/vier/templates/profile/vcard.tpl b/view/theme/vier/templates/profile/vcard.tpl index 940bdd016b..d6cf873b43 100644 --- a/view/theme/vier/templates/profile/vcard.tpl +++ b/view/theme/vier/templates/profile/vcard.tpl @@ -11,7 +11,7 @@ {{if $profile.addr}}
{{$profile.addr}}
{{/if}} - {{if $profile.about}}
{{$profile.about}}
{{/if}} + {{if $profile.about}}
{{$profile.about nofilter}}
{{/if}} {{if $profile.picdate}}
{{$profile.name}}