Skip to content

Commit bf1dec0

Browse files
committed
fix
1 parent f530be3 commit bf1dec0

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
@@ -1036,7 +1036,12 @@ export async function updateProfile(
10361036
const profileDetailsUpdates: Partial<UserProfileDetails> = {
10371037
bio: sanitizeString(bio),
10381038
keyboard: sanitizeString(keyboard),
1039-
socialProfiles: socialProfiles ?? {},
1039+
socialProfiles: Object.fromEntries(
1040+
Object.entries(socialProfiles ?? {}).map(([key, value]) => [
1041+
key,
1042+
sanitizeString(value),
1043+
])
1044+
),
10401045
showActivityOnPublicProfile,
10411046
};
10421047

0 commit comments

Comments
 (0)