diaspora / diaspora_federation

A library that provides functionalities needed for the diaspora* federation protocol.
GNU Affero General Public License v3.0
101 stars 29 forks source link

Only parse each nested element name once #118

Closed SuperTux88 closed 2 years ago

SuperTux88 commented 2 years ago

A child elements should only appear once or it is part of a nested array (photos, poll answers). So each element name only needs to be parsed once, because the way parse_array_from_node works is, that it already parses the full array with one call, so calling it multiple times again parses the full array a second time.

SuperTux88 commented 2 years ago

Merged as 85e12cea93568601a4875a4b26bf3514ecc38dfe

Thanks for the review @denschub :cookie: