Merge branch 'develop' into feat-12909

This commit is contained in:
かっこかり 2024-01-08 17:57:59 +09:00 committed by GitHub
commit 29d80c016e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
47 changed files with 578 additions and 285 deletions

View file

@ -655,7 +655,7 @@ export class DriveService {
public async updateFile(file: MiDriveFile, values: Partial<MiDriveFile>, updater: MiUser) {
const alwaysMarkNsfw = (await this.roleService.getUserPolicies(file.userId)).alwaysMarkNsfw;
if (values.name && !this.driveFileEntityService.validateFileName(file.name)) {
if (values.name != null && !this.driveFileEntityService.validateFileName(values.name)) {
throw new DriveService.InvalidFileNameError();
}