chore: print notification payload
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Kieran 2023-10-21 23:05:06 +01:00
parent c2991b8e26
commit 454f957653
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

@ -171,7 +171,7 @@ function makeNotification(n: PushNotification) {
} }
return evx.content.substring(0, 250); return evx.content.substring(0, 250);
}; };
return { const ret = {
body: body(), body: body(),
icon: evx.author.avatar ?? defaultAvatar(evx.author.pubkey), icon: evx.author.avatar ?? defaultAvatar(evx.author.pubkey),
badge: `${location.protocol}//${location.hostname}${CONFIG.appleTouchIconUrl}`, badge: `${location.protocol}//${location.hostname}${CONFIG.appleTouchIconUrl}`,
@ -179,4 +179,6 @@ function makeNotification(n: PushNotification) {
tag: evx.id, tag: evx.id,
data: JSON.stringify(n), data: JSON.stringify(n),
}; };
console.debug(ret);
return ret;
} }