8 lines
228 B
JavaScript
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);
|
|
};
|