From d52f0617a1ffd91d486d999fa004eb6f500e6cdd Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 14 Jan 2023 13:41:53 +0900 Subject: [PATCH] =?UTF-8?q?fix(server):=20=E3=83=89=E3=83=A9=E3=82=A4?= =?UTF-8?q?=E3=83=96=E5=AE=B9=E9=87=8F=E8=B6=85=E9=81=8E=E6=99=82=E3=81=AE?= =?UTF-8?q?=E3=82=A8=E3=83=A9=E3=83=BC=E3=81=8C=E9=81=A9=E5=88=87=E3=81=AB?= =?UTF-8?q?=E3=83=AC=E3=82=B9=E3=83=9D=E3=83=B3=E3=82=B9=E3=81=95=E3=82=8C?= =?UTF-8?q?=E3=81=AA=E3=81=84=E5=95=8F=E9=A1=8C=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix #9550 --- CHANGELOG.md | 1 + .../src/server/api/endpoints/drive/files/create.ts | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0872e875f..c13d11b0a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -133,6 +133,7 @@ You should also include the user name that made the change. - Server: 非公開のクリップのURLでOGPレンダリングされる問題を修正 @syuilo - Server: アンテナタイムライン(ストリーミング)が、フォローしていないユーザーの鍵投稿も拾ってしまう @syuilo - Server: follow request list api pagination @sim1222 +- Server: ドライブ容量超過時のエラーが適切にレスポンスされない問題を修正 @syuilo - Client: パスワードマネージャーなどでユーザー名がオートコンプリートされない問題を修正 @massongit - Client: 日付形式の文字列などがカスタム絵文字として表示されるのを修正 @syuilo - Client: case insensitive emoji search @saschanaz diff --git a/packages/backend/src/server/api/endpoints/drive/files/create.ts b/packages/backend/src/server/api/endpoints/drive/files/create.ts index 6abbab027..b3bdef41d 100644 --- a/packages/backend/src/server/api/endpoints/drive/files/create.ts +++ b/packages/backend/src/server/api/endpoints/drive/files/create.ts @@ -90,7 +90,7 @@ export default class extends Endpoint { } } - const meta = await this.metaService.fetch(); + const instance = await this.metaService.fetch(); try { // Create file @@ -102,8 +102,8 @@ export default class extends Endpoint { folderId: ps.folderId, force: ps.force, sensitive: ps.isSensitive, - requestIp: meta.enableIpLogging ? ip : null, - requestHeaders: meta.enableIpLogging ? headers : null, + requestIp: instance.enableIpLogging ? ip : null, + requestHeaders: instance.enableIpLogging ? headers : null, }); return await this.driveFileEntityService.pack(driveFile, { self: true }); } catch (err) { @@ -116,7 +116,7 @@ export default class extends Endpoint { } throw new ApiError(); } finally { - cleanup!(); + cleanup!(); } }); }