summaryrefslogtreecommitdiff
path: root/packages/backend/src/services/drive (follow)
Commit message (Collapse)AuthorAgeFilesLines
* なんかもうめっちゃ変えたsyuilo2022-09-188-886/+0
|
* feat: auto nsfw detection (#8840)syuilo2022-07-071-2/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * feat: auto nsfw detection * :v: * Update ja-JP.yml * Update ja-JP.yml * ポルノ判定のしきい値を高めに * エラーハンドリングちゃんとした * Update ja-JP.yml * 感度設定を強化 * refactor * feat: add video support for auto nsfw detection * rename: image -> media * .js * fix: add missing error handling * fix: use valid pathname instead of using filename due to invalid usage * perf(nsfw-detection): decode frames * disable detection of video for some reasons * perf(nsfw-detection): streamify detection process for video * disable disallowUploadWhenPredictedAsPorn option * fix(nsfw-detection): improve reliability * fix(nsfw-detection): use Math.ceil instead of Math.round * perf(nsfw-detection): delete tmp frames after used * fix(nsfw-detection): FSWatcher does not emit ready event * perf(nsfw-detection): skip black frames * refactor: strip exists check * Update package.json * めっちゃ変えた * lint * Update COPYING * オプションで動画解析できるように * Update yarn.lock * Update CHANGELOG.md Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
* Add additional drive capacity change support (#8867)CyberRex2022-07-051-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | * Add additional drive capacity change support * Update packages/backend/src/server/api/endpoints/admin/drive-capacity-override.ts Co-authored-by: Johann150 <johann@qwertqwefsday.eu> * :art: * show instance default capacity in placeholder * fix * update api/drive * fix * remove : * fix lint Co-authored-by: Johann150 <johann@qwertqwefsday.eu> Co-authored-by: tamaina <tamaina@hotmail.co.jp>
* feat: Log user ips (#8872)syuilo2022-07-022-25/+36
| | | | | | | | | | | | | | | | | | | * 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
* fix: GenerateVideoThumbnail (#8825)MeiMei2022-06-141-7/+5
| | | | | | | | | | | * fix: GenerateVideoThumbnail * CHANGELOG * fix cleanup * Revert "fix cleanup" This reverts commit d54cf8262ac01a3deb6b8dd7689ec144d4d09ea8.
* fix: missing file name parameter (#8820)Johann1502022-06-131-1/+1
|
* refactor: temporary files (#8713)Johann1502022-05-252-47/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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`
* fix: Unable to generate video thumbnails (#8696)MeiMei2022-05-191-1/+1
| | | | | * fix: Unable to generate video thumbnails * CHANGELOG
* enhance: ↵tamaina2022-04-283-35/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ドライブに画像ファイルをアップロードするときオリジナル画像を破棄してwebpublicのみ保持するオプション (#8216) * wip * Update packages/client/src/os.ts Co-authored-by: tamaina <tamaina@hotmail.co.jp> * メニューをComposition API化、switchアイテム追加 クライアントサイド画像圧縮の準備 * メニュー型定義を分離 (TypeScriptの型支援が効かないので) * disabled * make keepOriginal to follow setting value * :v: * fix * fix * :v: * WEBP * aaa * :v: * webp * lazy load browser-image-resizer * rename * rename 2 * Fix * clean up * add comment * clean up * jpeg, pngにもどす * fix * fix name * webpでなくする ただしサムネやプレビューはwebpのまま (テスト) * 動画サムネイルはjpegに * エラーハンドリング * :v: * v2.2.1-misskey-beta.2 * browser-image-resizer#v2.2.1-misskey.1 * :v: * fix alert * update browser-image-resizer to v2.2.1-misskey.2 * lockfile Co-authored-by: mei23 <m@m544.net> Co-authored-by: MeiMei <30769358+mei23@users.noreply.github.com>
* chore: fix lintsyuilo2022-04-031-2/+2
|
* refactor: migrate to typeorm 3.0 (#8443)syuilo2022-03-261-11/+12
| | | | | | | | | | | | | | | | | | | | | | | * wip * wip * wip * Update following.ts * wip * wip * wip * Update resolve-user.ts * maxQueryExecutionTime * wip * wip
* delete needless instance drive columnssyuilo2022-03-072-4/+0
|
* fix esmsyuilo2022-03-012-2/+2
|
* refactor: Use ESM (#8358)syuilo2022-02-278-51/+50
| | | | | | | | | | | | | | | * wip * wip * fix * clean up * Update tsconfig.json * Update activitypub.ts * wip
* refactorsyuilo2022-02-031-12/+12
|
* refactor, enhance: ドライブ引数のオブジェクト化, ↵MeiMei2022-01-232-32/+55
| | | | | | | | | | | 追加時のcomment指定 (#8180) * refactor: ドライブの引数をオブジェクト化する Resolve #8177 * Resolve #8181 * fix * archivePath
* refactor(server): use named exportsyuilo2022-01-202-3/+3
|
* feat(server): store mime type of webpublicsyuilo2022-01-201-0/+2
|
* refactor(server): use insert instead of savesyuilo2022-01-201-3/+3
|
* enhance: ↵tamaina2022-01-031-0/+6
| | | | | | | 許可されていないファイルタイプでは、オブジェクトストレージのファイル名に拡張子を付与しないように (#8108) * 許可されていないファイルタイプでは、オブジェクトストレージのファイル名に拡張子を付与しないように * add comment
* Revert "revert d53795184"syuilo2022-01-011-0/+2
| | | | This reverts commit aedbab17cc400ae7ac17498463504f40646e8673.
* wip (#8101)tamaina2022-01-011-3/+3
|
* revert d53795184syuilo2021-12-291-2/+0
|
* refactorsyuilo2021-12-261-2/+2
|
* enhance(server): better content type detectionsyuilo2021-12-261-0/+2
|
* fix lintsyuilo2021-12-096-23/+23
|
* fix: 画像ファイルの縦横サイズの取得で Exif Orientation ↵xianon2021-12-031-0/+4
| | | | | | | | | | | を考慮する (#8014) * 画像ファイルの縦横サイズの取得で Exif Orientation を考慮する * test: Add rotate.jpg test * Webpublic 画像を返す時のみ Exif Orientation を考慮して縦横サイズを返す * test: Support orientation
* refactoringsyuilo2021-11-128-0/+837
Resolve #7779