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
This commit is contained in:
ShittyKopper 2023-11-05 15:43:16 +03:00
parent 2eda00d9b9
commit 36c136cfd2
4 changed files with 2 additions and 115 deletions

View file

@ -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);