entity normalizer: collapse data.pleroma if blocks
This commit is contained in:
parent
28ca504576
commit
ac97cd3e46
|
@ -134,14 +134,10 @@ export const parseUser = (data) => {
|
||||||
|
|
||||||
if (data.pleroma) {
|
if (data.pleroma) {
|
||||||
output.follow_request_count = data.pleroma.follow_request_count
|
output.follow_request_count = data.pleroma.follow_request_count
|
||||||
}
|
|
||||||
|
|
||||||
if (data.pleroma) {
|
|
||||||
output.tags = data.pleroma.tags
|
output.tags = data.pleroma.tags
|
||||||
output.deactivated = data.pleroma.deactivated
|
output.deactivated = data.pleroma.deactivated
|
||||||
}
|
|
||||||
|
|
||||||
if (data.pleroma) {
|
|
||||||
output.notification_settings = data.pleroma.notification_settings
|
output.notification_settings = data.pleroma.notification_settings
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue