mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-16 20:05:14 +02:00
Remove profile about field double HTML escaping
- Add BBcode conversion for profile.about in widget/vcard.tpl
This commit is contained in:
parent
a42104ce43
commit
1ce5b1d65b
11 changed files with 16 additions and 14 deletions
|
@ -6,6 +6,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;
|
||||
|
@ -43,14 +44,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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue