From 36c136cfd25e3166434705bd747312942c2b8bc0 Mon Sep 17 00:00:00 2001 From: ShittyKopper Date: Sun, 5 Nov 2023 15:43:16 +0300 Subject: upd: remove more traces of sensitiveMediaDetection kept the api endpoint props just to stay compatible with clients that expect them to be there. they are unused and won't get saved --- packages/backend/src/core/FileInfoService.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'packages/backend/src/core/FileInfoService.ts') diff --git a/packages/backend/src/core/FileInfoService.ts b/packages/backend/src/core/FileInfoService.ts index 25487fa0fa..803f6908de 100644 --- a/packages/backend/src/core/FileInfoService.ts +++ b/packages/backend/src/core/FileInfoService.ts @@ -50,13 +50,7 @@ export class FileInfoService { * Get file information */ @bindThis - // eslint-disable-next-line @typescript-eslint/no-unused-vars - public async getFileInfo(path: string, _opts: { - skipSensitiveDetection: boolean; - sensitiveThreshold?: number; - sensitiveThresholdForPorn?: number; - enableSensitiveMediaDetectionForVideos?: boolean; - }): Promise { + public async getFileInfo(path: string): Promise { const warnings = [] as string[]; const size = await this.getFileSize(path); -- cgit v1.2.3-freya