improve recreateChain
Created by: dakkar
- it no longer cares about the order of the notes in the input array, it will always match parent and children
- a single function can process notes and tweets, because it takes the id + replyid field names as arguments
- the same function should be usable for other importers, too
I had to pick a single field name between replies
and childNotes
, I picked childNotes
and updated the tweet import job code to match.
This code imported correctly my Twitter export: and my Sharkey export:
Checklist
-
Read the contribution guide -
Test working in a local environment -
(If needed) Add story of storybook -
(If needed) Update CHANGELOG.md -
(If possible) Add tests