From 03d9288f44bf480c8e979d0538b80187b10ef092 Mon Sep 17 00:00:00 2001 From: dakkar Date: Tue, 6 Aug 2024 19:23:03 +0100 Subject: [PATCH 1/2] fix spacing (thanks linter) --- packages/backend/src/core/MfmService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/core/MfmService.ts b/packages/backend/src/core/MfmService.ts index 76d0eb2339..29ec13308f 100644 --- a/packages/backend/src/core/MfmService.ts +++ b/packages/backend/src/core/MfmService.ts @@ -683,7 +683,7 @@ export class MfmService { let result = new XMLSerializer().serializeToString(body); if (inline) { - result = result.replace(/^

/,'').replace(/<\/p>$/,''); + result = result.replace(/^

/, '').replace(/<\/p>$/, ''); } return result; From 9672f0b48eec76c3871953a622bf62e134005f4d Mon Sep 17 00:00:00 2001 From: dakkar Date: Tue, 6 Aug 2024 19:51:11 +0100 Subject: [PATCH 2/2] fix comparison (thanks linter) --- packages/backend/src/core/CustomEmojiService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }