hippofish/packages/backend
コルセット姫@がんばらない cae6ba0edb feat: Add media to Mastodon and Calckey post imports (#10496)
### What does this PR do?

Adding files fields in the export notes option, and corresponding import notes

Current the mastodon import does not import any attachments, this pr will use the "upload from url" feature to include medias if its a valid URL.

There are many way to convert the outbox.json file, can be simple as upload media_attachments to any web hosting and do string replace on the json file.

I also create a tool that upload the tar.gz file with auto convert and host the media as simplify the process at https://tempfile.moegirl.live

Detail example can be found at https://fedi.moegirl.live/notes/9h76gtqnp2gwl5dz

https://r2temp.moegirl.live/2023/7/15/15356683-050f-423a-b331-c9a05561f52a/shana-settings-_-meng-zhai-le-yuan-xyou-yu-ou-xiang-de-luo-ke-ke-wu-yan-moe-otaku-elysian-x-gloomily-idol-s-rococo-luncheon----mozilla-firefox-private-browsing-2023-07-15-18-36-37.mp4

Co-authored-by: CGsama <CGsama@outlook.com>
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/10496
Co-authored-by: コルセット姫@がんばらない <cgsama@noreply.codeberg.org>
Co-committed-by: コルセット姫@がんばらない <cgsama@noreply.codeberg.org>
2023-07-15 22:56:09 +00:00
..
.idea Create move type 2022-11-23 21:49:52 +01:00
.vscode Update settings.json 2022-04-15 21:33:00 +09:00
assets [mastodon-client] Add transparent.png asset 2023-07-06 02:16:51 +00:00
migration fix: 🐛 allow up to 1024 chars for SMTP login 2023-07-15 00:19:09 -07:00
native-utils Remove debug logging 2023-07-06 02:16:51 +00:00
nsfw-model feat: auto nsfw detection (#8840) 2022-07-07 21:06:37 +09:00
src feat: Add media to Mastodon and Calckey post imports (#10496) 2023-07-15 22:56:09 +00:00
test chore: 🎨 format 2023-06-27 23:37:24 -07:00
.mocharc.json fix: mocha テストが動かないのを修正 v2 (#8892) 2022-06-26 19:16:32 +09:00
.swcrc fix compile error 2023-06-24 04:07:19 -04:00
check_connect.js formatting 2023-04-06 18:56:46 -07:00
jsconfig.json chore: format 2023-05-29 09:31:02 -07:00
ormconfig.js Remove static postgres tls settings 2023-06-28 01:48:55 +01:00
package.json Revert "refactor: use blurhash-as for encoding and decoding" 2023-07-13 19:06:57 -07:00
tsconfig.json Refactor: use rust for native mastodon id conversion (#9786) 2023-03-31 01:58:28 +00:00