1
0
Fork 0

Remove leading space in displayed public tags in profile page

This commit is contained in:
Hypolite Petovan 2021-01-23 15:55:21 -05:00
parent b7e43d3a48
commit a2556e7c67

View file

@ -192,7 +192,8 @@ class Profile extends BaseProfile
if ($a->profile['pub_keywords']) {
$tags = [];
foreach (explode(',', $a->profile['pub_keywords']) as $tag_label) {
// Separator is defined in Module\Settings\Profile\Index::cleanKeywords
foreach (explode(', ', $a->profile['pub_keywords']) as $tag_label) {
$tags[] = [
'url' => '/search?tag=' . $tag_label,
'label' => Tag::TAG_CHARACTER[Tag::HASHTAG] . $tag_label,