fix: profile updates fail if language isn't specified

This commit is contained in:
naskya 2023-12-27 05:41:11 +09:00
parent 7d5bbfa180
commit cea65f58d7
No known key found for this signature in database
GPG key ID: 712D413B3A9FED5C

View file

@ -160,7 +160,7 @@ export default define(meta, paramDef, async (ps, _user, token) => {
if (ps.name !== undefined) updates.name = ps.name;
if (ps.description !== undefined) profileUpdates.description = ps.description;
if (ps.lang !== undefined) profileUpdates.lang = ps.lang;
if (typeof ps.lang === "string") profileUpdates.lang = ps.lang;
if (ps.location !== undefined) profileUpdates.location = ps.location;
if (ps.birthday !== undefined) profileUpdates.birthday = ps.birthday;
if (ps.ffVisibility !== undefined)