pleroma/app/soapbox/normalizers/account.js
2022-02-27 14:42:42 -06:00

8 lines
228 B
JavaScript

export const normalizeAccount = account => {
const birthday = [
account.getIn(['pleroma', 'birthday']),
account.getIn(['other_settings', 'birthday']),
].find(Boolean);
return account.set('birthday', birthday);
};