Fix incorrect placeholder image path

This commit is contained in:
Ethan Girouard 2024-11-01 14:26:38 -04:00
parent 4e4c94a189
commit 0453aef37d
Signed by: eta357
GPG Key ID: 7BCDC36DFD11C146

View File

@ -128,7 +128,7 @@ pub async fn recent_songs(for_user_id: i32, limit: Option<i64>) -> Result<Vec<(S
let image_path = song.image_path.unwrap_or(
album.as_ref().map(|album| album.image_path.clone()).flatten()
.unwrap_or("/assets/images/placeholder.jpg".to_string()));
.unwrap_or("/assets/images/placeholders/MusicPlaceholder.svg".to_string()));
let songdata = SongData {
id: song_id,
@ -226,7 +226,7 @@ pub async fn top_songs(for_user_id: i32, start_date: SystemTime, end_date: Syste
let image_path = song.image_path.unwrap_or(
album.as_ref().map(|album| album.image_path.clone()).flatten()
.unwrap_or("/assets/images/placeholder.jpg".to_string()));
.unwrap_or("/assets/images/placeholders/MusicPlaceholder.svg".to_string()));
let songdata = SongData {
id: song_id,