rudeshark.net/packages/backend/src
コルセット姫@がんばらない 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
..
@types enhance: emoji width and height 2023-05-19 22:26:13 -04:00
boot Revert "chore: formatting" 2023-06-05 21:15:49 -07:00
config fix: use host as prefix of cacheServer if undefined 2023-07-06 17:06:31 -04:00
daemons chore: 🎨 format 2023-07-08 16:21:15 -07:00
db feat: cache server 2023-07-06 11:50:34 -07:00
mfm clean up w/ rome 2023-01-16 11:19:20 -08:00
misc docs: 💡 going past DB_MAX_NOTE_TEXT_LENGTH 2023-07-15 15:32:39 -07:00
models fix: 🐛 allow up to 1024 chars for SMTP login 2023-07-15 00:19:09 -07:00
prelude clean up w/ rome 2023-01-16 11:19:20 -08:00
queue feat: Add media to Mastodon and Calckey post imports (#10496) 2023-07-15 22:56:09 +00:00
remote Stop using the name 'exist' if it's not for existence check 2023-07-13 15:28:44 +00:00
server chore: 🎨 format 2023-07-15 00:06:53 -07:00
services More replacements which aren't covered by f4870d6e 2023-07-13 15:31:40 +00:00
const.ts fix: 🔧 max post length 100000 2023-07-15 14:50:23 -07:00
env.ts refactor: 🎨 rome 2023-01-12 20:40:33 -08:00
global.d.ts chore: rome linting 2023-01-14 16:09:47 +01:00
index.ts refactor: 🎨 rome 2023-01-12 20:40:33 -08:00
types.ts Feat: new internal post visibility "hidden" 2023-05-05 15:16:10 +02:00