0
0
Fork 0

feat(alert): can customize assets & title for Misskey notification

This commit is contained in:
무라쿠모 2024-08-25 23:19:04 +09:00
parent 1e0b6058cb
commit de6aaeb79b
No known key found for this signature in database
GPG key ID: 139D6573F92DA9F7
10 changed files with 86 additions and 18 deletions

View file

@ -51,8 +51,8 @@ export const sendNoteAlert = async (text: string, user: User) => {
*/
export const sendNotificationAlert = async (text: string, user: User) => {
const res = await api(user.host, 'notifications/create', {
header: 'Misskey Tools with LycheeBridge',
icon: 'https://t.psec.dev/assets/lcb.png',
header: user.notificationHeader ?? 'Misskey Tools with LycheeBridge',
icon: user.notificationIcon ?? 'https://t.psec.dev/assets/lcb.png',
body: text,
}, user.token);