From dc959543f413e096017b2d5f6c7bce65e24f4fbc Mon Sep 17 00:00:00 2001 From: Martin Berka Date: Mon, 16 Oct 2023 09:18:08 +0200 Subject: [PATCH] =?UTF-8?q?=C3=9Aprava=20u=C5=BEivatelsk=C3=BDch=20jmen=20?= =?UTF-8?q?pro=20ntfy=20URL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/notifikace.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/notifikace.ts b/server/src/notifikace.ts index e7006b2..7dcf4c4 100644 --- a/server/src/notifikace.ts +++ b/server/src/notifikace.ts @@ -100,7 +100,7 @@ export const callNotifikace = async ({ input, teams = true, gotify = false, ntfy const notifications = []; if (ntfy) { if (input.user) { - input.user = Buffer.from(input.user, 'utf8').toString('base64'); + input.user = input.user.normalize('NFD').replace(' ', '').replace(/[\u0300-\u036f]/g, '').toLowerCase(); } const ntfyPromises = await ntfyCall(input); if (ntfyPromises) {