diff --git a/server/src/notifikace.ts b/server/src/notifikace.ts index 2c24f63..e7006b2 100644 --- a/server/src/notifikace.ts +++ b/server/src/notifikace.ts @@ -99,6 +99,9 @@ export const ntfyCall = async (data: NotififaceInput) => { export const callNotifikace = async ({ input, teams = true, gotify = false, ntfy = true }: NotifikaceData) => { const notifications = []; if (ntfy) { + if (input.user) { + input.user = Buffer.from(input.user, 'utf8').toString('base64'); + } const ntfyPromises = await ntfyCall(input); if (ntfyPromises) { notifications.push(...ntfyPromises);