diff --git a/app/Http/Controllers/Backend/User/DashboardController.php b/app/Http/Controllers/Backend/User/DashboardController.php index 21c097565..d96b5a91e 100644 --- a/app/Http/Controllers/Backend/User/DashboardController.php +++ b/app/Http/Controllers/Backend/User/DashboardController.php @@ -18,9 +18,10 @@ public static function getPrivateDashboard(User $user): Paginator { $followingIDs[] = $user->id; return Status::with([ 'event', 'likes', 'user.blockedByUsers', 'user.blockedUsers', 'checkin', + 'mentions.mentioned', 'checkin.originStation', 'checkin.destinationStation', 'checkin.originStopover', 'checkin.destinationStopover', - 'checkin.Trip.stopovers.station' + 'checkin.trip.stopovers.station' ]) ->join('train_checkins', 'train_checkins.status_id', '=', 'statuses.id') ->select('statuses.*') @@ -41,9 +42,10 @@ public static function getPrivateDashboard(User $user): Paginator { public static function getGlobalDashboard(User $user): Paginator { return Status::with([ 'event', 'likes', 'user.blockedByUsers', 'user.blockedUsers', 'checkin', + 'mentions.mentioned', 'checkin.originStation', 'checkin.destinationStation', 'checkin.originStopover', 'checkin.destinationStopover', - 'checkin.Trip.stopovers.station' + 'checkin.trip.stopovers.station' ]) ->join('train_checkins', 'train_checkins.status_id', '=', 'statuses.id') ->join('users', 'statuses.user_id', '=', 'users.id')