diff options
author | Mario Vavti <mario@mariovavti.com> | 2023-04-27 11:00:43 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2023-04-27 11:00:43 +0200 |
commit | e6ec87f910edf1f56871512738da3d8631599864 (patch) | |
tree | 093f47c45662bea633e33e66713d8ab6a60ce83d /Zotlabs/Module/Directory.php | |
parent | f72fb974a9274f2075c7e0b8db9eee2fdc5d81e6 (diff) | |
download | volse-hubzilla-e6ec87f910edf1f56871512738da3d8631599864.tar.gz volse-hubzilla-e6ec87f910edf1f56871512738da3d8631599864.tar.bz2 volse-hubzilla-e6ec87f910edf1f56871512738da3d8631599864.zip |
update doco and fix safemode
Diffstat (limited to 'Zotlabs/Module/Directory.php')
-rw-r--r-- | Zotlabs/Module/Directory.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Zotlabs/Module/Directory.php b/Zotlabs/Module/Directory.php index 4ce19c3a8..dc10d38c0 100644 --- a/Zotlabs/Module/Directory.php +++ b/Zotlabs/Module/Directory.php @@ -299,10 +299,11 @@ class Directory extends Controller { $hometown = ((x($profile,'hometown') == 1) ? html2plain($profile['hometown']) : False); $about = ((x($profile,'about') == 1) ? zidify_links(bbcode($profile['about'], ['tryoembed' => false])) : False); - if ($about && $safe_mode) { - $about = html2plain($about); + if ($about && $safe_mode > 0) { + $about = strip_tags($about, '<br>'); } + $keywords = ((x($profile,'keywords')) ? $profile['keywords'] : ''); @@ -362,7 +363,7 @@ class Directory extends Controller { 'censor_2_class' => ((intval($rr['censored']) > 1) ? '' : '-outline'), 'marital' => $marital, 'homepage' => $homepage, - 'homepageurl' => (($safe_mode) ? $homepageurl : linkify($homepageurl)), + 'homepageurl' => (($safe_mode > 0) ? $homepageurl : linkify($homepageurl)), 'hometown' => $hometown, 'hometown_label' => t('Hometown:'), 'about' => $about, |