Kódování username pro ntfy v base64
This commit is contained in:
parent
9c2808d4ec
commit
9736646b03
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user