aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-21 00:44:39 +0900
committernsfisis <nsfisis@gmail.com>2024-08-21 00:44:39 +0900
commit48223c8438002f4dedd0623704a8ea1e8e4126b5 (patch)
treeb4bee299bc391f987a8292a425578cd642a63368
parent66cb651b106f24a56fbdb94f8a45fabddaf5a85a (diff)
downloadiosdc-japan-2025-albatross-48223c8438002f4dedd0623704a8ea1e8e4126b5.tar.gz
iosdc-japan-2025-albatross-48223c8438002f4dedd0623704a8ea1e8e4126b5.tar.zst
iosdc-japan-2025-albatross-48223c8438002f4dedd0623704a8ea1e8e4126b5.zip
feat(backend): change location where user icons are stored
-rw-r--r--backend/account/icon.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/account/icon.go b/backend/account/icon.go
index 40632c6..8f76527 100644
--- a/backend/account/icon.go
+++ b/backend/account/icon.go
@@ -34,7 +34,7 @@ func FetchIcon(
return fmt.Errorf("failed to fetch user icon (uid=%d): %w", userID, err)
}
// Download user icon file.
- filePath := fmt.Sprintf("/files/%s/icon%s", url.PathEscape(user.Username), path.Ext(avatarURL))
+ filePath := fmt.Sprintf("/files/img/%s/icon%s", url.PathEscape(user.Username), path.Ext(avatarURL))
if err := downloadFile(ctx, fortee.Endpoint+avatarURL, "/data"+filePath); err != nil {
return fmt.Errorf("failed to fetch user icon (uid=%d): %w", userID, err)
}