feat: show user avatars on /users page
All checks were successful
CI / Check / Test / Build (push) Successful in 24m46s

This commit is contained in:
2026-05-13 23:45:19 +02:00
parent 19171806b9
commit e41d85bd7e
8 changed files with 33 additions and 7 deletions

View File

@@ -461,15 +461,23 @@ pub struct UserSummary {
email: Email,
pub total_movies: i64,
pub avg_rating: Option<f64>,
pub avatar_path: Option<String>,
}
impl UserSummary {
pub fn new(user_id: UserId, email: Email, total_movies: i64, avg_rating: Option<f64>) -> Self {
pub fn new(
user_id: UserId,
email: Email,
total_movies: i64,
avg_rating: Option<f64>,
avatar_path: Option<String>,
) -> Self {
Self {
user_id,
email,
total_movies,
avg_rating,
avatar_path,
}
}
pub fn email(&self) -> &str {