From 49c5643bc7f91999864b9e67868c83e13181d119 Mon Sep 17 00:00:00 2001 From: Floorb <132411956+Neetpone@users.noreply.github.com> Date: Mon, 27 Feb 2023 05:33:13 -0500 Subject: [PATCH] fix: user profile page created at date not showing up --- public/user.php | 4 ++-- theme/bulma/user_profile.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/user.php b/public/user.php index d9c310b..d8d9769 100644 --- a/public/user.php +++ b/public/user.php @@ -17,7 +17,7 @@ $profile_username = trim($_GET['user']); $profile_info = User::with('favourites') ->where('username', $profile_username) - ->select('id', 'date', 'badge') + ->select('id', 'created_at', 'badge') ->first(); if (!$profile_info) { @@ -58,7 +58,7 @@ $profile_total_paste_views = Paste::select('views') ->where('user_id', $profile_info->id) ->sum('views'); -$profile_join_date = $profile_info['date']; +$profile_join_date = $profile_info->created_at; $profile_pastes = $profile_info->pastes; $profile_favs = $profile_info->favourites; diff --git a/theme/bulma/user_profile.php b/theme/bulma/user_profile.php index 4b24ea9..6416012 100644 --- a/theme/bulma/user_profile.php +++ b/theme/bulma/user_profile.php @@ -38,7 +38,7 @@

's Pastes

-

joined:

+

joined:

Badges