diff options
Diffstat (limited to 'backend/account/icon.go')
| -rw-r--r-- | backend/account/icon.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/account/icon.go b/backend/account/icon.go index 4f195c6..9e5e379 100644 --- a/backend/account/icon.go +++ b/backend/account/icon.go @@ -34,8 +34,8 @@ func FetchIcon( return fmt.Errorf("failed to fetch user icon (uid=%d): %w", userID, err) } // Download user icon file. - 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 { + 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) } // Save user icon path. |
