sforkowany z mirror/friendica
Merge pull request #9857 from MrPetovan/bug/9854-tags-profile-space
Remove leading space in displayed public tags in profile page2022.09-rc
commit
6f52f535bf
|
@ -192,7 +192,8 @@ class Profile extends BaseProfile
|
||||||
|
|
||||||
if ($a->profile['pub_keywords']) {
|
if ($a->profile['pub_keywords']) {
|
||||||
$tags = [];
|
$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[] = [
|
$tags[] = [
|
||||||
'url' => '/search?tag=' . $tag_label,
|
'url' => '/search?tag=' . $tag_label,
|
||||||
'label' => Tag::TAG_CHARACTER[Tag::HASHTAG] . $tag_label,
|
'label' => Tag::TAG_CHARACTER[Tag::HASHTAG] . $tag_label,
|
||||||
|
|
Ładowanie…
Reference in New Issue