This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
use super::{movie::Movie, review::{DiaryEntry, Review}};
|
||||
use super::{
|
||||
movie::Movie,
|
||||
review::{DiaryEntry, Review},
|
||||
};
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct FeedEntry {
|
||||
|
||||
@@ -1,40 +1,40 @@
|
||||
mod movie;
|
||||
mod review;
|
||||
mod user;
|
||||
mod stats;
|
||||
mod enrichment;
|
||||
mod feed;
|
||||
mod movie;
|
||||
mod review;
|
||||
mod stats;
|
||||
mod user;
|
||||
|
||||
pub mod collections;
|
||||
pub mod goal;
|
||||
pub mod import;
|
||||
pub mod import_profile;
|
||||
pub mod import_session;
|
||||
pub mod person;
|
||||
pub mod search;
|
||||
pub mod watchlist;
|
||||
pub mod remote_watchlist;
|
||||
pub mod goal;
|
||||
pub mod user_settings;
|
||||
pub mod remote_goal;
|
||||
pub mod remote_watchlist;
|
||||
pub mod search;
|
||||
pub mod user_settings;
|
||||
pub mod watch_event;
|
||||
pub mod watchlist;
|
||||
pub mod wrapup;
|
||||
|
||||
pub use movie::*;
|
||||
pub use review::*;
|
||||
pub use user::*;
|
||||
pub use stats::*;
|
||||
pub use enrichment::*;
|
||||
pub use feed::*;
|
||||
pub use movie::*;
|
||||
pub use review::*;
|
||||
pub use stats::*;
|
||||
pub use user::*;
|
||||
|
||||
pub use watchlist::{WatchlistEntry, WatchlistWithMovie};
|
||||
pub use remote_watchlist::RemoteWatchlistEntry;
|
||||
pub use goal::{Goal, GoalWithProgress};
|
||||
pub use user_settings::UserSettings;
|
||||
pub use remote_goal::RemoteGoalEntry;
|
||||
pub use remote_watchlist::RemoteWatchlistEntry;
|
||||
pub use user_settings::UserSettings;
|
||||
pub use watch_event::{
|
||||
ParsedPlaybackEvent, PersistedWatchEvent, WatchEvent, WatchEventSource, WatchEventStatus,
|
||||
WebhookToken,
|
||||
};
|
||||
pub use watchlist::{WatchlistEntry, WatchlistWithMovie};
|
||||
pub use wrapup::*;
|
||||
|
||||
pub use import::{
|
||||
|
||||
@@ -63,8 +63,12 @@ pub async fn get_profile(
|
||||
username: profile.username,
|
||||
display_name: profile.display_name,
|
||||
bio: profile.bio,
|
||||
avatar_url: profile.avatar_path.map(|p| format!("{}/images/{}", base_url, p)),
|
||||
banner_url: profile.banner_path.map(|p| format!("{}/images/{}", base_url, p)),
|
||||
avatar_url: profile
|
||||
.avatar_path
|
||||
.map(|p| format!("{}/images/{}", base_url, p)),
|
||||
banner_url: profile
|
||||
.banner_path
|
||||
.map(|p| format!("{}/images/{}", base_url, p)),
|
||||
also_known_as: profile.also_known_as,
|
||||
fields: profile
|
||||
.fields
|
||||
@@ -543,13 +547,8 @@ pub async fn get_user_profile_html(
|
||||
.most_active_month
|
||||
.clone()
|
||||
.unwrap_or_else(|| "\u{2014}".to_string());
|
||||
let history = profile
|
||||
.history
|
||||
.map(crate::mappers::users::group_by_month);
|
||||
let heatmap = history
|
||||
.as_deref()
|
||||
.map(build_heatmap)
|
||||
.unwrap_or_default();
|
||||
let history = profile.history.map(crate::mappers::users::group_by_month);
|
||||
let heatmap = history.as_deref().map(build_heatmap).unwrap_or_default();
|
||||
let monthly_rating_rows: Vec<MonthlyRatingRow<'_>> = profile
|
||||
.trends
|
||||
.as_ref()
|
||||
|
||||
Reference in New Issue
Block a user