diff options
Diffstat (limited to 'backend')
| -rw-r--r-- | backend/account/icon.go | 2 |
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) } |
