normalizeAccount(): normalize Pleroma legacy fields
This commit is contained in:
2
app/soapbox/utils/normalizers.js
Normal file
2
app/soapbox/utils/normalizers.js
Normal file
@ -0,0 +1,2 @@
|
||||
// Use new value only if old value is undefined
|
||||
export const mergeDefined = (oldVal, newVal) => oldVal === undefined ? newVal : oldVal;
|
||||
Reference in New Issue
Block a user