summaryrefslogtreecommitdiff
path: root/packages/backend/src/core/FileInfoService.ts
diff options
context:
space:
mode:
authorShittyKopper <shittykopper@w.on-t.work>2023-11-05 15:43:16 +0300
committerShittyKopper <shittykopper@w.on-t.work>2023-11-05 16:28:55 +0300
commit36c136cfd25e3166434705bd747312942c2b8bc0 (patch)
treea92bd462c336b23637df2fb69de3eb7bdfd5e071 /packages/backend/src/core/FileInfoService.ts
parentupd: rip out AiService (diff)
downloadsharkey-36c136cfd25e3166434705bd747312942c2b8bc0.tar.gz
sharkey-36c136cfd25e3166434705bd747312942c2b8bc0.tar.bz2
sharkey-36c136cfd25e3166434705bd747312942c2b8bc0.zip
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
Diffstat (limited to 'packages/backend/src/core/FileInfoService.ts')
-rw-r--r--packages/backend/src/core/FileInfoService.ts8
1 files changed, 1 insertions, 7 deletions
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<FileInfo> {
+ public async getFileInfo(path: string): Promise<FileInfo> {
const warnings = [] as string[];
const size = await this.getFileSize(path);