1
0
mirror of https://github.com/pocket-id/pocket-id.git synced 2026-02-16 00:26:10 +00:00

feat: add support for WEBP profile pictures (#1090)

This commit is contained in:
Elias Schneider
2025-11-11 17:56:20 +01:00
committed by GitHub
parent ab9c0f9ac0
commit 12125713a2
3 changed files with 25 additions and 8 deletions

View File

@@ -159,7 +159,7 @@ func (s *UserService) GetUserGroups(ctx context.Context, userID string) ([]model
return user.UserGroups, nil
}
func (s *UserService) UpdateProfilePicture(ctx context.Context, userID string, file io.Reader) error {
func (s *UserService) UpdateProfilePicture(ctx context.Context, userID string, file io.ReadSeeker) error {
// Validate the user ID to prevent directory traversal
err := uuid.Validate(userID)
if err != nil {