From 9dda608a509c51555097b1e8553bc76b0b7b17a9 Mon Sep 17 00:00:00 2001 From: Tzahi12345 Date: Tue, 3 Jan 2023 02:19:11 -0500 Subject: [PATCH] Fixed issue with adding thumbnails to notifications --- backend/notifications.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/notifications.js b/backend/notifications.js index 4eae17b..de5329e 100644 --- a/backend/notifications.js +++ b/backend/notifications.js @@ -35,7 +35,7 @@ exports.sendNotification = async (notification) => { const title = NOTIFICATION_TYPE_TO_TITLE[type]; const body = NOTIFICATION_TYPE_TO_BODY[type](notification); const url = NOTIFICATION_TYPE_TO_URL[type](notification); - const thumbnail = NOTIFICATION_TYPE_TO_THUMBNAIL[type](notification); + const thumbnail = NOTIFICATION_TYPE_TO_THUMBNAIL[type]; if (config_api.getConfigItem('ytdl_use_ntfy_API') && config_api.getConfigItem('ytdl_ntfy_topic_url')) { sendNtfyNotification(body, title, type, url, thumbnail);