diff --git a/theme/bulma/user_profile.php b/theme/bulma/user_profile.php index 5b04f63..fad7df3 100644 --- a/theme/bulma/user_profile.php +++ b/theme/bulma/user_profile.php @@ -179,9 +179,8 @@ $protocol = paste_protocol(); $p_dateui = $p_date->format("d F Y"); $p_views = Trim($row['views']); $p_visible = intval($row['visible']); - $p_tags = Trim($row['tagsys']); - $tagArray = explode(',', $p_tags); - $tagArray = array_filter($tagArray); + $tagArray = array_map(function($tag) { return $tag['name']; }, getPasteTags($conn, $p_id)); + $p_tags = implode(',', $tagArray); $p_visible = match ($p_visible) { @@ -209,7 +208,7 @@ $protocol = paste_protocol();