From 77bead92a60148cbc5b1ff2669a418a12cef0d92 Mon Sep 17 00:00:00 2001 From: aftercase <74765798+aftercase@users.noreply.github.com> Date: Wed, 18 Aug 2021 22:48:37 +0100 Subject: [PATCH] Tags on favorites now working I done a thinger. --- theme/bulma/user_profile.php | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/theme/bulma/user_profile.php b/theme/bulma/user_profile.php index 80d0038..bc1c4d6 100644 --- a/theme/bulma/user_profile.php +++ b/theme/bulma/user_profile.php @@ -281,9 +281,8 @@ $protocol = paste_protocol(); $f_dateui = $f_date->format("d F Y"); $Recent_update = new DateTime($row['updated_at']); $Recent_update_u = date_format($Recent_update, 'U'); - $f_tags = Trim($row['tagsys']); - $ftagArray = explode(',', $f_tags); - $ftagArray = array_filter($ftagArray); + $tagArray2 = array_map(function ($tag) { return $tag['name'];}, getPasteTags($conn, $f_id)); + $f_tags = implode(',', $tagArray2); //$p_link = ($mod_rewrite == '1') ? "$f_id" : "paste.php?favdel=$fu_id"; //$f_delete_link = ($mod_rewrite == '1') ? "user.php?favdel&user=$profile_username&fid=$f_id" : "user.php?favdel&user=$profile_username&fid=$f_id"; $title = truncate($title, 20, 50); @@ -307,13 +306,13 @@ $protocol = paste_protocol();