hippofish/packages/backend
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
..
.vscode Update settings.json 2022-04-15 21:33:00 +09:00
assets merge: upstream 2023-11-01 12:39:07 +01:00
migration merge: upstream 2023-11-22 23:40:27 +01:00
src prepare to import more notes 2023-11-30 13:26:55 +00:00
test merge: upstream 2023-11-22 23:40:27 +01:00
.eslintignore use eslint 2021-11-12 10:35:41 +09:00
.eslintrc.cjs test(server): add validation test of api:notes/create (#10090) 2023-02-26 11:28:05 +09:00
.madgerc Create .madgerc 2022-09-20 01:04:08 +09:00
.swcrc Revert: swcrc back to normal state 2023-10-08 20:54:24 +02:00
check_connect.js chore: 著作権とライセンスについての情報を各ファイルに追加する (#11348) 2023-07-27 14:31:52 +09:00
jest.config.cjs merge: timeline 1 2023-10-13 17:58:11 +02:00
jsconfig.json use eslint 2021-11-12 10:35:41 +09:00
ormconfig.js fix: postgre -> postgres (#9814) 2023-02-07 19:50:38 +09:00
package.json merge: upstream 2023-11-22 23:40:27 +01:00
README.md chore: ✌️ 2022-12-24 14:39:17 +09:00
tsconfig.json update deps (#11764) 2023-09-04 13:33:38 +09:00
watch.mjs chore: 著作権とライセンスについての情報を各ファイルに追加する (#11348) 2023-07-27 14:31:52 +09:00

Misskey Backend