Remove profile about field double HTML escaping

- Add BBcode conversion for profile.about in widget/vcard.tpl
This commit is contained in:
Hypolite Petovan 2020-02-11 21:38:42 -05:00
commit 1ce5b1d65b
11 changed files with 16 additions and 14 deletions

View file

@ -58,14 +58,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']);