From 48223c8438002f4dedd0623704a8ea1e8e4126b5 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 21 Aug 2024 00:44:39 +0900 Subject: feat(backend): change location where user icons are stored --- backend/account/icon.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backend/account') 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) } -- cgit v1.2.3-70-g09d2