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) {