Sharkey/packages/backend/src/queue/processors
Gianni Ceccarelli e392d523a7 prepare to import more notes
`recreateChain` converts a list of notes into a forest of notes, using
notes that are not replies as roots, and replies as child nodes,
recursively.

Previously, notes that are replies to notes not included in the
export, and their children, were never put in the forest, and
therefore wheren't imported.

This can be fine when importing from Twitter, since we can't really
link a note to a tweet.

And, for the moment, it's acceptable when importing from *key, because
the export doesn't contain the instance URL, so we can't resolve ids
to remote notes.

It's less fine when importing from Mastodon / Pleroma / Akkoma,
because in those cases we _can_ link to the remote note that the user
was replying to.

This commit makes `recreateChain` optionally return "orphaned" note
trees, so in the (near) future we can use it to properly thread
imported notes from those services.
2023-11-30 13:26:55 +00:00
..
AggregateRetentionProcessorService.ts perf(backend): createdAtをidから取得するように & 無駄なDateインスタンスの生成を避けるように 2023-10-16 10:45:22 +09:00
CheckExpiredMutingsProcessorService.ts update deps (#11820) 2023-09-15 14:28:29 +09:00
CleanChartsProcessorService.ts refactor(backend): Remove unused injections (#11462) 2023-08-05 10:33:00 +09:00
CleanProcessorService.ts merge: timeline 1 2023-10-13 17:58:11 +02:00
CleanRemoteFilesProcessorService.ts update deps (#11820) 2023-09-15 14:28:29 +09:00
DeleteAccountProcessorService.ts upd: delete reactions properly in the DB 2023-10-11 23:03:01 +02:00
DeleteDriveFilesProcessorService.ts update deps (#11820) 2023-09-15 14:28:29 +09:00
DeleteFileProcessorService.ts refactor(backend): Remove unused injections (#11462) 2023-08-05 10:33:00 +09:00
DeliverProcessorService.ts refactor(backend): update directory structure for models 2023-09-20 11:33:36 +09:00
EndedPollNotificationProcessorService.ts update deps (#11820) 2023-09-15 14:28:29 +09:00
ExportAccountDataProcessorService.ts upd: export headers used during signin 2023-11-07 18:18:04 +01:00
ExportAntennasProcessorService.ts feat: local-only antenna 2023-10-16 15:06:00 +09:00
ExportBlockingProcessorService.ts update deps (#11820) 2023-09-15 14:28:29 +09:00
ExportCustomEmojisProcessorService.ts update deps (#11820) 2023-09-15 14:28:29 +09:00
ExportFavoritesProcessorService.ts perf(backend): createdAtをidから取得するように & 無駄なDateインスタンスの生成を避けるように 2023-10-16 10:45:22 +09:00
ExportFollowingProcessorService.ts refactor(backend): update directory structure for models 2023-09-20 11:33:36 +09:00
ExportMutingProcessorService.ts update deps (#11820) 2023-09-15 14:28:29 +09:00
ExportNotesProcessorService.ts perf(backend): createdAtをidから取得するように & 無駄なDateインスタンスの生成を避けるように 2023-10-16 10:45:22 +09:00
ExportUserListsProcessorService.ts merge: timeline 1 2023-10-13 17:58:11 +02:00
ImportAntennasProcessorService.ts feat: local-only antenna 2023-10-16 15:06:00 +09:00
ImportBlockingProcessorService.ts update deps (#11820) 2023-09-15 14:28:29 +09:00
ImportCustomEmojisProcessorService.ts update deps (#11820) 2023-09-15 14:28:29 +09:00
ImportFollowingProcessorService.ts 新規にフォローした人のwithRepliesをtrueにする機能を追加 (#12048) 2023-10-17 20:56:17 +09:00
ImportMutingProcessorService.ts update deps (#11820) 2023-09-15 14:28:29 +09:00
ImportNotesProcessorService.ts prepare to import more notes 2023-11-30 13:26:55 +00:00
ImportUserListsProcessorService.ts perf(backend): createdAtをidから取得するように & 無駄なDateインスタンスの生成を避けるように 2023-10-16 10:45:22 +09:00
InboxProcessorService.ts upd: change handling of renewkeyFailed 2023-10-20 12:54:25 +02:00
RelationshipProcessorService.ts 新規にフォローした人のwithRepliesをtrueにする機能を追加 (#12048) 2023-10-17 20:56:17 +09:00
ResyncChartsProcessorService.ts refactor(backend): Remove unused injections (#11462) 2023-08-05 10:33:00 +09:00
TickChartsProcessorService.ts refactor(backend): Remove unused injections (#11462) 2023-08-05 10:33:00 +09:00
WebhookDeliverProcessorService.ts update deps (#11820) 2023-09-15 14:28:29 +09:00