summaryrefslogtreecommitdiff
path: root/packages/backend/src/services/drive/upload-from-url.ts (follow)
Commit message (Collapse)AuthorAgeFilesLines
* なんかもうめっちゃ変えたsyuilo2022-09-181-68/+0
|
* feat: Log user ips (#8872)syuilo2022-07-021-3/+7
| | | | | | | | | | | | | | | | | | | * wip * store ip and headers * Update admin-file.vue * require admin for view ip/headers * IP (recent) 消した * admin必須 * opt in * clean ips periodically * respect logging setting in drive/files/create
* refactor: temporary files (#8713)Johann1502022-05-251-17/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * simplify temporary files for thumbnails Because only a single file will be written to the directory, creating a separate directory seems unnecessary. If only a temporary file is created, the code from `createTemp` can be reused here as well. * refactor: deduplicate code for temporary files/directories To follow the DRY principle, the same code should not be duplicated across different files. Instead an already existing function is used. Because temporary directories are also create in multiple locations, a function for this is also newly added to reduce duplication. * fix: clean up identicon temp files The temporary files for identicons are not reused and can be deleted after they are fully read. This condition is met when the stream is closed and so the file can be cleaned up using the events API of the stream. * fix: ensure cleanup is called when download fails * fix: ensure cleanup is called in error conditions This covers import/export queue jobs and is mostly just wrapping all code in a try...finally statement where the finally runs the cleanup. * fix: use correct type instead of `any`
* chore: fix lintsyuilo2022-04-031-2/+2
|
* refactor: Use ESM (#8358)syuilo2022-02-271-9/+9
| | | | | | | | | | | | | | | * wip * wip * fix * clean up * Update tsconfig.json * Update activitypub.ts * wip
* refactor, enhance: ドライブ引数のオブジェクト化, ↵MeiMei2022-01-231-9/+20
| | | | | | | | | | | 追加時のcomment指定 (#8180) * refactor: ドライブの引数をオブジェクト化する Resolve #8177 * Resolve #8181 * fix * archivePath
* refactor(server): use named exportsyuilo2022-01-201-2/+2
|
* fix lintsyuilo2021-12-091-1/+1
|
* refactoringsyuilo2021-11-121-0/+62
Resolve #7779