normalizeAccount(): normalize Pleroma legacy fields

This commit is contained in:
Alex Gleason
2022-02-27 20:21:39 -06:00
parent 2eefdbe235
commit 19ac4a54c2
8 changed files with 108 additions and 33 deletions

View File

@ -0,0 +1,2 @@
// Use new value only if old value is undefined
export const mergeDefined = (oldVal, newVal) => oldVal === undefined ? newVal : oldVal;