Repository navigation
Conversation
Contributor
|
このPRによるapi.jsonの差分 0 追加行 / 0 削除行 (0 bytes) 差分はありません。 |
Contributor
🖥 Frontend Diagnostics Report(No significant changes) Requests by resource type
V8 heap snapshot statistics
📦 Bundle StatsChunk size diff (0 updated, 0 added, 0 removed)
Startup chunk size (0 updated, 0 added, 0 removed)
Startup chunks are the Vite entry for
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Contributor
⚙️ Backend Diagnostics ReportMemory: After GC(No significant changes) V8 Heap Snapshot Statistics
|
2 of 4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Refs #8 / Related: misskey-dev/misskey#13257。
GET /drive/:fileId/HEAD /drive/:fileIdで、本人の内部ストレージ原本を添付ファイルとしてストリーミングします。既存の Bearer 認証を再利用し、アプリトークンにはread:driveを要求します。Cookie・URL のトークンは受け付けません。所有者を DB 検索条件に含め、他人のファイル・未検出・未対応の保存先は共通の 404 とします。認証失敗・内部エラーを含め
private, no-storeとVary: Authorizationを設定し、添付名のエンコードは既存ヘルパーを使用します。HEAD は同じ認可を通り、原本を読み込まず実サイズを返します。Why
本家 Issue misskey-dev/misskey#13257(
/files・/proxyでソース URL を直接公開せずfileIdベースで参照し、本体経由で原本へのアクセス制限を行えるようにする提案)および cfw-fileup 統合(#8)の最初の独立したスライスとして、既存/files・/proxyと分離したfileIdベースの入口を作ります。cfw-fileup の公開/非公開/パスフレーズやファイルトークンのモデルをそのまま取り込まず、まず既存 Misskey の本人認証と原本配信を接続します。既存の公開 URL(
/files・/proxy)や外部メディアプロキシ連携は変更しません。この入口の所有者チェックは、すでに公開 URL を持つファイルを非公開化するものではありません。Additional info (optional)
FileServerService登録を通る Fastify inject テスト 22 件 PASS。Bearer/所有者/scope/account state/HEAD/添付名/サイズ/経路/エラー/cache を合成ファイルで検証しました。MfmService.tsのFIXMEエラーは、検証設定から既存global.d.tsを除外していたことが原因でした。検証設定に既存宣言を含めて再実行し成功。製品コードや型定義は変更していません。Checklist