Skip to content

Commit 33d8a95

Browse files
committed
fix: error default avatar and icon cdn url
1 parent 1f57496 commit 33d8a95

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/utils/app.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,17 @@ pub fn build_app_state(
5959
.parse::<u8>()
6060
.unwrap_or(100),
6161
curseforge_avatar_cdn_url: env::var("CURSEFORGE_AVATAR_CDN_URL")
62-
.unwrap_or_else(|_| "https://cdn.modrinth.com".to_string()),
62+
.unwrap_or_else(|_| "https://media.forgecdn.net".to_string()),
6363
curseforge_avatar_cdn_fallback_url: env::var("CURSEFORGE_AVATAR_CDN_FALLBACK_URL")
64-
.unwrap_or_else(|_| "https://cdn.modrinth.com".to_string()),
64+
.unwrap_or_else(|_| "https://media.forgecdn.net".to_string()),
6565
curseforge_avatar_cdn_primary_percentage: env::var("CURSEFORGE_AVATAR_CDN_PRIMARY_PERCENTAGE")
6666
.unwrap_or_else(|_| "100".to_string())
6767
.parse::<u8>()
6868
.unwrap_or(100),
6969
modrinth_avatar_cdn_url: env::var("MODRINTH_AVATAR_CDN_URL")
70-
.unwrap_or_else(|_| "https://media.forgecdn.net".to_string()),
70+
.unwrap_or_else(|_| "https://cdn.modrinth.com".to_string()),
7171
modrinth_avatar_cdn_fallback_url: env::var("MODRINTH_AVATAR_CDN_FALLBACK_URL")
72-
.unwrap_or_else(|_| "https://media.forgecdn.net".to_string()),
72+
.unwrap_or_else(|_| "https://cdn.modrinth.com".to_string()),
7373
modrinth_avatar_cdn_primary_percentage: env::var("MODRINTH_AVATAR_CDN_PRIMARY_PERCENTAGE")
7474
.unwrap_or_else(|_| "100".to_string())
7575
.parse::<u8>()

0 commit comments

Comments
 (0)