Sharkey/packages/backend/src
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
..
@types chore: 著作権とライセンスについての情報を各ファイルに追加する (#11348) 2023-07-27 14:31:52 +09:00
boot merge: all upstream changes 2023-10-13 19:01:17 +02:00
core upd: remove accidental additions 2023-11-30 04:05:11 +01:00
daemons Remove unnecessary nullish coalescing (#12058) 2023-10-18 09:54:18 +09:00
misc fix: cleanup not available on development env 2023-11-12 17:32:24 +01:00
models merge: upstream 2023-11-22 23:40:27 +01:00
queue prepare to import more notes 2023-11-30 13:26:55 +00:00
server upd: improve post editing on polls 2023-11-30 02:11:47 +01:00
config.ts tweak default configuration 2023-11-01 14:00:31 +09:00
const.ts make drive_file.comment larger 2023-10-02 13:47:35 +01:00
decorators.ts chore: 著作権とライセンスについての情報を各ファイルに追加する (#11348) 2023-07-27 14:31:52 +09:00
di-symbols.ts merge: upstream 2023-10-31 19:33:24 +01:00
env.ts chore: 著作権とライセンスについての情報を各ファイルに追加する (#11348) 2023-07-27 14:31:52 +09:00
global.d.ts chore: 著作権とライセンスについての情報を各ファイルに追加する (#11348) 2023-07-27 14:31:52 +09:00
GlobalModule.ts merge: timeline 1 2023-10-13 17:58:11 +02:00
logger.ts chore(backend): Resolve import/no-default-export rule violations (#11732) 2023-08-17 21:20:58 +09:00
MainModule.ts chore: 著作権とライセンスについての情報を各ファイルに追加する (#11348) 2023-07-27 14:31:52 +09:00
NestLogger.ts chore: 著作権とライセンスについての情報を各ファイルに追加する (#11348) 2023-07-27 14:31:52 +09:00
postgres.ts merge: upstream 2023-10-31 19:33:24 +01:00
types.ts merge: upstream 2023-11-03 15:35:12 +01:00