Merge pull request #9857 from MrPetovan/bug/9854-tags-profile-space

Remove leading space in displayed public tags in profile page
This commit is contained in:
Michael Vogel 2021-01-24 13:03:50 +01:00 committed by GitHub
commit 6f52f535bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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