Correctly use the mii server env variable

This commit is contained in:
red binder 2026-04-12 15:18:42 +02:00
commit 2bfb3790df

View file

@ -2,7 +2,7 @@ use rocket::{get, State};
use crate::Pool;
use crate::xml::{Xml, YesNoVal};
use crate::error::Errors;
use crate::mii_util::get_mii_img_url;
use crate::mii_util::MII_PROVIDER_SERVER_URL;
use serde::Serialize;
use gxhash::gxhash32;
@ -92,7 +92,7 @@ pub async fn get_miis(
.iter()
.map(|(file, img_type)| {
// dummy URL for now
let url = format!("{}/mii/{}/{}", get_mii_img_url(row.pid, "png"), row.pid, file);
let url = format!("{}/mii/{}/{}", &*MII_PROVIDER_SERVER_URL, row.pid, file);
MiiImage {
cached_url: url.clone(),
id: mii_id,