From 5c24cb2214c9fbc1a306aca261c10a146c494aa3 Mon Sep 17 00:00:00 2001 From: Accusys Date: Mon, 18 May 2026 01:34:39 +0800 Subject: [PATCH] fix: identity tmdb_profile returns local path instead of TMDb URL --- src/api/identity_api.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/identity_api.rs b/src/api/identity_api.rs index 63f6815..1408dcb 100644 --- a/src/api/identity_api.rs +++ b/src/api/identity_api.rs @@ -262,7 +262,7 @@ async fn get_identity_detail( match identity { Some(i) => Ok(Json(IdentityDetailResponse { success: true, - identity_uuid: i.uuid, + identity_uuid: i.uuid.clone(), name: i.name, identity_type: i.identity_type, source: i.source, @@ -270,7 +270,7 @@ async fn get_identity_detail( metadata: i.metadata, reference_data: i.reference_data, tmdb_id: i.tmdb_id, - tmdb_profile: i.tmdb_profile, + tmdb_profile: Some(format!("{}/identities/{}/profile.jpg", crate::core::config::OUTPUT_DIR.as_str(), i.uuid.replace('-', ""))), created_at: i.created_at, updated_at: i.updated_at, })),