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) => {
|
export const callNotifikace = async ({ input, teams = true, gotify = false, ntfy = true }: NotifikaceData) => {
|
||||||
const notifications = [];
|
const notifications = [];
|
||||||
if (ntfy) {
|
if (ntfy) {
|
||||||
|
if (input.user) {
|
||||||
|
input.user = Buffer.from(input.user, 'utf8').toString('base64');
|
||||||
|
}
|
||||||
const ntfyPromises = await ntfyCall(input);
|
const ntfyPromises = await ntfyCall(input);
|
||||||
if (ntfyPromises) {
|
if (ntfyPromises) {
|
||||||
notifications.push(...ntfyPromises);
|
notifications.push(...ntfyPromises);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user