diff --git a/packages/backend/src/core/CustomEmojiService.ts b/packages/backend/src/core/CustomEmojiService.ts index aa99261549..0bd47a8535 100644 --- a/packages/backend/src/core/CustomEmojiService.ts +++ b/packages/backend/src/core/CustomEmojiService.ts @@ -144,7 +144,7 @@ export class CustomEmojiService implements OnApplicationShutdown { if (data.driveFile != null) { const file = await this.driveFilesRepository.findOneBy({ url: emoji.originalUrl, userHost: emoji.host ? emoji.host : IsNull() }); - if (file && file.id != data.driveFile.id) { + if (file && file.id !== data.driveFile.id) { await this.driveService.deleteFile(file, false, moderator ? moderator : undefined); } }