Skip to content

Commit

Permalink
Add fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
Jontes-Tech committed Mar 2, 2024
1 parent 025de31 commit 4472d7c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file added shared/static/fallback_image.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion worker/src/routes/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ pub async fn get(req: Request, ctx: RouteContext<ENSService>) -> worker::Result<
if query.w.is_some() && query.w.unwrap() > 0 {
let w = query.w.unwrap();
redirect_url(&format!(
"https://wsrv.nl/?url={}&w={}&output=webp",
"https://wsrv.nl/?url={}&w={}&output=webp&default=https://cdn.jsdelivr.net/gh/v3xlabs/enstate@latest/shared/static/fallback_image.jpg",
avatar.as_str(),
w
))
Expand Down

0 comments on commit 4472d7c

Please sign in to comment.