Skip to content

Commit 3379c94

Browse files
committed
fix
1 parent fb2a18f commit 3379c94

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

backend/src/api/controllers/user.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1041,7 +1041,12 @@ export async function updateProfile(
10411041
const profileDetailsUpdates: Partial<UserProfileDetails> = {
10421042
bio: sanitizeString(bio),
10431043
keyboard: sanitizeString(keyboard),
1044-
socialProfiles: socialProfiles ?? {},
1044+
socialProfiles: Object.fromEntries(
1045+
Object.entries(socialProfiles ?? {}).map(([key, value]) => [
1046+
key,
1047+
sanitizeString(value),
1048+
])
1049+
),
10451050
showActivityOnPublicProfile,
10461051
};
10471052

0 commit comments

Comments
 (0)