bigbuffet-rw/app/soapbox/normalizers/account.js

9 lines
228 B
JavaScript
Raw Normal View History

2022-02-27 12:42:42 -08:00
export const normalizeAccount = account => {
const birthday = [
account.getIn(['pleroma', 'birthday']),
account.getIn(['other_settings', 'birthday']),
].find(Boolean);
return account.set('birthday', birthday);
};