Skip to content

improve recreateChain

Ghost User requested to merge gh-b77c0252/159/unknown/refs/pull/159/head into develop

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: Screenshot 2023-11-18 at 10-52-38 Misskey and my Sharkey export: Screenshot 2023-11-18 at 10-59-30 Misskey

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

Merge request reports