From: Hypolite Petovan Date: Sat, 23 Jan 2021 20:55:21 +0000 (-0500) Subject: Remove leading space in displayed public tags in profile page X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a2556e7c67221801c22625bf109b1a5ef2c46df6;p=friendica.git Remove leading space in displayed public tags in profile page --- diff --git a/src/Module/Profile/Profile.php b/src/Module/Profile/Profile.php index 6b7da3d716..5c0a082dc0 100644 --- a/src/Module/Profile/Profile.php +++ b/src/Module/Profile/Profile.php @@ -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,