summaryrefslogtreecommitdiff
path: root/packages/backend/src/core/DriveService.ts (follow)
Commit message (Collapse)AuthorAgeFilesLines
* enhance(backend): ↵syuilo2025-10-211-25/+28
| | | | | | 管理者/モデレーターはファイルのアップロード制限をバイパスするように Resolve #16687
* fix(backend): avoid deadlock when deleting account (#16162)zyoshoka2025-06-041-3/+3
|
* improve logsyuilo2025-05-281-1/+1
|
* enhance(backend): ↵syuilo2025-05-241-5/+6
| | | | ファイル種別が判定できない場合、拡張子を参照するように
* feat: ↵syuilo2025-05-221-5/+17
| | | | | | | | | | | | | ロールでアップロード可能なファイル種別を設定可能に (#16081) * wip * Update RoleService.ts * wip * Update RoleService.ts * Update CHANGELOG.md
* Feat: ドライブ周りのUIの強化 (#16011)syuilo2025-05-211-1/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * wip * wip * Update MkDrive.vue * wip * Update MkDrive.vue * Update MkDrive.vue * wip * Update MkDrive.vue * Update MkDrive.vue * wip * Update MkDrive.vue * wip * wip * wip * wip * Update MkDrive.vue * wip * wip * wip * wip * wip * wip * wip * feat(frontend): upload dialog (#16032) * wip * wip * Update MkUploadDialog.vue * wip * wip * wip * wip * wip * Update MkUploadDialog.vue * wip * wip * Update MkDrive.vue * wip * wip * Update MkPostForm.vue * wip * Update room.form.vue * Update os.ts * wiop * wip * wip * wip * wip * wip * wip * wip * Update select-file.ts * wip * wip * Update MkDrive.vue * Update drag-and-drop.ts * wip * wip * wop * wip * wip * Update MkDrive.vue * Update CHANGELOG.md * wipo * Update MkDrive.folder.vue * wip * Update MkUploaderDialog.vue * wip * wip * Update MkUploaderDialog.vue * wip * Update MkDrive.vue * Update MkDrive.vue * wip * wip
* feat: ↵syuilo2025-04-271-0/+7
| | | | アップロード可能な最大ファイルサイズをロールごとに設定可能に
* fix(backend): ↵Esurio/1673beta2025-02-111-3/+4
| | | | オブジェクトストレージの設定でPrefixを設定していなかった場合、nullが文字列として展開・ドメインの1つ後ろに'/'が挿入されないように (#15432)
* refactor/perf(backend): provide metadata statically (#14601)syuilo2024-09-221-33/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * wip * Update ReactionService.ts * Update ApiCallService.ts * Update timeline.ts * Update GlobalModule.ts * Update GlobalModule.ts * Update NoteEntityService.ts * wip * wip * wip * Update ApPersonService.ts * wip * Update GlobalModule.ts * Update mock-resolver.ts * Update RoleService.ts * Update activitypub.ts * Update activitypub.ts * Update activitypub.ts * Update activitypub.ts * Update activitypub.ts * clean up * Update utils.ts * Update UtilityService.ts * Revert "Update utils.ts" This reverts commit a27d4be764b78c1b5a9eac685e261fee49331d89. * Revert "Update UtilityService.ts" This reverts commit e5fd9e004c482cf099252201c0c1aa888e001430. * vuwa- * Revert "vuwa-" This reverts commit 0c3bd12472b4b9938cdff2d6f131e6800bc3724c. * Update entry.ts * Update entry.ts * Update entry.ts * Update entry.ts * Update jest.setup.ts
* feat: media silence (#13842)anatawa122024-07-301-0/+3
| | | | | | | | | | | | | | | | | | | | | * feat: media silence * fix: lint * feat: deny creating custom emoji reaction and using custom emoji from media silenced hosts * chore: メディアサイレンスの説明にカスタム絵文字の話を追加 * Update locales/ja-JP.yml Co-authored-by: Sayamame-beans <61457993+Sayamame-beans@users.noreply.github.com> * chore: update index.d.ts * docs(changelog): update changelog --------- Co-authored-by: Sayamame-beans <61457993+Sayamame-beans@users.noreply.github.com>
* fix(backend): use insertOne insteadof insert/findOneOrFail combination (#13908)Acid Chicken2024-06-011-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix(backend): use insertOne insteadof insert/findOneOrFail combination * fix: typo * fix(backend): inherit mainAlias? * refactor(backend): use extend * fix(backend): invalid entityTarget * fix(backend): fake where * chore: debug * chore: debug * test: log * fix(backend): column names * fix(backend): remove dummy from * revert: log * fix(backend): position * fix(backend): automatic aliasing * chore(backend): alias * chore(backend): remove from * fix(backend): type * fix(backend): avoid pure name * test(backend): fix type * chore(backend): use cte * fix(backend): avoid useless alias * fix(backend): fix typo * fix(backend): __disambiguation__ * fix(backend): quote * chore(backend): t * chore(backend): accessible * chore(backend): concrete returning * fix(backend): quote * chore: log more * chore: log metadata * chore(backend): use raw * fix(backend): returning column name * fix(backend): transform * build(backend): wanna logging * build(backend): transform empty * build(backend): build alias * build(backend): restore name * chore: return entity * fix: test case * test(backend): 204 * chore(backend): log sql * chore(backend): assert user joined * fix(backend): typo * chore(backend): log long sql * chore(backend): log join * chore(backend): log join depth null * chore(backend): joinAttributes * chore(backend): override createJoinExpression * chore: join log * fix(backend): escape * test(backend): log log * chore(backend): join gonna success? * chore(backend): relations * chore(backend): undefined * chore(backend): target * chore(backend): remove log * chore(backend): log chart update * chore(backend): log columns * chore(backend): check hasMetadata * chore(backend): unshift id when not included * chore(backend): missing select * chore(backend): remove debug code
* chore(backend): rename local variable (#13904)Kisaragi2024-05-291-7/+7
| | | much -> matched
* もともとセンシティブではないと連合されていたファイ ↵anatawa122024-05-271-0/+6
| | | | | | | | | | | | | | | | | | | がセンシティブとして連合された場合にセンシティブとしてそのファイルを扱うように (#13879) * feat(backend): mark an file as sensitive if the file was newly federated as sensitive * docs(changelog): もともとセンシティブではないと連合されていたファイルがセンシティブとして連合された場合にセンシティブとしてそのファイルを扱うように * fix: change way to update federated image * Update packages/backend/src/core/DriveService.ts Co-authored-by: Sayamame-beans <61457993+Sayamame-beans@users.noreply.github.com> * update isSensitive of existing record object --------- Co-authored-by: Sayamame-beans <61457993+Sayamame-beans@users.noreply.github.com>
* (re) update SPDX-FileCopyrightTexttamaina2024-02-131-1/+1
| | | | Fix #13290
* Revert "update SPDX-FileCopyrightText"tamaina2024-02-131-1/+1
| | | | This reverts commit 9b5aeb76d8c9372d67058c512597152b6bf222f2.
* update SPDX-FileCopyrightTextsyuilo2024-02-121-1/+1
|
* fix(backend): ↵zyoshoka2024-01-081-1/+1
| | | | | | | | | | | `drive/files/update`におけるファイル名のバリデーションが機能していない問題を修正 (#12923) * fix(backend): `drive/files/update`におけるファイル名のバリデーションが機能していない問題を修正 * Update CHANGELOG.md * refactor: `!== undefined` -> `!= null` * add test
* chore: use summaly, browser-image-resizer, and sharp-read-bmp on ↵tamaina2023-12-311-1/+1
| | | | | | | | | | | | | | | registry.npmjs.org instead of git (#12856) * chore: use @misskey-dev/summaly on registry.npmjs.org instead of git * fix backend dependency * fic backend dependency * @misskey-dev/sharp-read-bmp * fix * use @misskey-dev/browser-image-resizer
* perf(backend): createdAtをidから取得するように & ↵syuilo2023-10-161-2/+1
| | | | 無駄なDateインスタンスの生成を避けるように
* enhance: improve moderation logsyuilo2023-09-251-0/+8
|
* Update DriveService.tssyuilo2023-09-241-1/+1
|
* fixsyuilo2023-09-241-4/+7
|
* improve moderation logsyuilo2023-09-241-0/+51
|
* enhance(backend): refine moderation log (#10939)syuilo2023-09-231-5/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * Update DriveService.ts
* refactor(backend): update directory structure for modelssyuilo2023-09-201-3/+3
|
* update deps (#11820)syuilo2023-09-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * update deps * fix * wip * wip * wip * Update docker-compose.yml.example * Delete reviewer-lottery.yml * Update RepositoryModule.ts * wip * wip * clean up * update deps * wip * wip
* refactor: prefix Mi for all entities (#11719)syuilo2023-08-161-16/+16
| | | | | | | | | | | | | | | | | | | | | * wip * wip * wip * wip * Update RepositoryModule.ts * wip * wip * wip * Revert "wip" This reverts commit c1c13b37d2aaf3c65bc148212da302b0eb7868bf.
* Fix typos (#11450)woxtu2023-08-051-2/+2
|
* update deps (#11409)syuilo2023-07-311-3/+1
| | | | | | | | | | | | | | | | | * update deps * Update .eslintrc.js * Update .eslintrc.js * lint * lint * Update update.ts * update deps * Update .eslintrc.js
* chore: ↵Shun Sakai2023-07-271-0/+5
| | | | | | | | | | | | | | 著作権とライセンスについての情報を各ファイルに追加する (#11348) * chore: Add the SPDX information to each file Add copyright and licensing information as defined in version 3.0 of the REUSE Specification. * tweak format --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* refactor(backend): Improve UUID generation (#11286)woxtu2023-07-151-13/+13
| | | | | * Replace with `crypto.randomUUID()` * Remove uuid
* ロールにNSFWを強制的につけるオプションを追加 (#10731)nenohi2023-05-051-1/+7
| | | | | | | | | | | | | | | | | | | | | * ロールにNSFWを強制的につけるオプションを追加 * すでにあるファイルにNSFWが付与できない * NSFWを付与しようとするとエラーに * add test * Update packages/backend/src/core/RoleService.ts Co-authored-by: syuilo <Syuilotan@yahoo.co.jp> * spacingで怒られたので * ロール作成時のプロパティ削除 --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* fix(server): Force the extention of exported file (#10630)tamaina2023-04-141-5/+8
| | | | | * fix(server): Force the extention of exported file * update changelog.md
* fix DriveService.tstamaina2023-04-131-0/+1
|
* fix: proper expire remote user drivefile over limits at adding time (#9426)CGsama2023-04-131-11/+13
| | | | | | | | | | | | | * delete remote user drivefile over limits at adding * refactor * delete → expire * speed up by batch find --------- Co-authored-by: tamaina <tamaina@hotmail.co.jp>
* enhance(backend): ↵syuilo2023-03-241-2/+6
| | | | リモートサーバーのチャート生成を無効にするオプションを追加
* perf(backend): ↵syuilo2023-03-241-8/+10
| | | | ドライブのチャートはローカルユーザーのみ生成するように
* bump aws-sdk to v3 for s3 (#10363)YS2023-03-231-28/+25
| | | | | * indent * aws-sdk v3移行
* fix: Do not use avif (#10301)tamaina2023-03-121-2/+2
| | | | | | | * fix: Do not use avif * fix * fix
* enhance(server): ↵tamaina2023-03-111-21/+16
| | | | | | | | | | | | | | | | | | | | | 画像圧縮周り(主にサムネイルの仕様)の変更 (#10287) * DriveService, is-mime-image * static, previewをavifに, アニメーション画像でもthumbnailを生成 * fallback * animated: true * fix * avatarはwebp * revert ?? file.url --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* fix(backend/DriveService): gracely skip when getting NoSuchKey error from S3 ↵Kagami Sascha Rosylight2023-03-111-6/+16
| | | | | | | | | (#10292) * fix(backend/DriveService): gracely skip when getting NoSuchKey error from S3 * Update CHANGELOG.md * import type
* fix(backend/DriveService): convert WebP/AVIF to WebP (#10239)Kagami Sascha Rosylight2023-03-101-6/+6
| | | | | | | | | | | | | | | | | | | | * fix(backend/DriveService): convert transparent WebP/AVIF to PNG * webpにする その希望が複数ありましたので * Update packages/backend/src/core/DriveService.ts Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com> * update test * webpはwebpublicにできる --------- Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com> Co-authored-by: tamaina <tamaina@hotmail.co.jp>
* enhance(server): ↵tamaina2023-03-041-19/+25
| | | | | | | | | | | | | | | | | | | | | | | | | downloadUrlでContent-Dispositionからファイル名を取得 (#10150) * enhance(server): downloadUrlでContent-Dispositionからファイル名を取得 Resolve #10036 Resolve #4750 * untitled * オブジェクトストレージのContent-Dispositionのファイル名の拡張子をContent-Typeに添ったものにする * :v: * tiff * fix filename * add test * /files/でもContent-Disposition * comment * fix test
* refactorsyuilo2023-02-131-4/+4
|
* enhance(server): videoThumbnailGenerator config (#9845)tamaina2023-02-121-0/+8
| | | | | | | | | | | | | * enhance(server): videoThumbnailGenerator config * :v: * fix * 相対url * サムネイルのproxyRemoteFilesは直接プロキシを指定する * メディアプロキシ
* refactor: rename role.options -> role.policiessyuilo2023-01-151-2/+2
|
* remoteDriveCapacityMbをロールに統合syuilo2023-01-131-11/+5
|
* perf(backend): Use undici instead of node-fetch and got (#9459)tamaina2023-01-121-2/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implement? HttpFetchService * :v: * remove node-fetch * fix * refactor * fix * gateway timeout * UndiciFetcherクラスを追加 (仮コミット, ビルドもstartもさせていない) * fix * add logger and fix url preview * fix ip check * enhance logger and error handling * fix * fix * clean up * Use custom fetcher for ApRequest / ApResolver * bypassProxyはproxyBypassHostsに判断を委譲するように * set maxRedirections (default 3, ApRequest/ApResolver: 0) * fix comment * handle error s3 upload * add debug message * no return await * Revert "no return await" This reverts commit b5b0dc58a342393d260492e3a6f58304372f53b2. * reduce maxSockets * apResolverのUndiciFetcherを廃止しapRequestのものを使う、 add ap logger * Revert "apResolverのUndiciFetcherを廃止しapRequestのものを使う、 add ap logger" This reverts commit 997243915c8e1f8472da64f607f88c36cb1d5cb4. * add logger * fix * change logger name * safe * デフォルトでUser-Agentを設定
* Role (#9437)syuilo2023-01-121-8/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * wip * Update CHANGELOG.md * wip * wip * wip * Update create.ts * wip * wip * Update CHANGELOG.md * wip * wip * wip * wip * wip * wip * wip * Update CHANGELOG.md * wip * wip * Update delete.ts * Update delete.ts * wip * wip * wip * Update account-info.vue * wip * wip * Update settings.vue * Update user-info.vue * wip * Update show-file.ts * Update show-user.ts * wip * wip * Update delete.ts * wip * wip * Update overview.moderators.vue * Create 1673500412259-Role.js * wip * wip * Update roles.vue * 色 * Update roles.vue * integrate silence * wip * wip
* enhance: AVIF support (#9281)tamaina2022-12-081-4/+5
| | | | | | | | | | | | | * chore: Make image/avif browsersafe * server side * change FileInfoService * :v: * avifはMastodonでは絶望的 see https://github.com/misskey-dev/misskey/issues/9283 Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>