From 1e52bb1ae9ad0ad6ea23e857d03de680daa8de6a Mon Sep 17 00:00:00 2001 From: Matthias Guillitte Date: Tue, 2 Sep 2025 14:13:32 +0200 Subject: [PATCH] Fix notifications --- app/Notification/Providers/DiscordWebHookNotification.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Notification/Providers/DiscordWebHookNotification.php b/app/Notification/Providers/DiscordWebHookNotification.php index 12f9719..e6f7676 100644 --- a/app/Notification/Providers/DiscordWebHookNotification.php +++ b/app/Notification/Providers/DiscordWebHookNotification.php @@ -74,8 +74,8 @@ class DiscordWebHookNotification extends NotificationProvider { ]; if ($notification->getImageURL() !== null && is_file($notification->getImageProjectPath())) { + $formData['file'] = curl_file_create($notification->getImageProjectPath(), 'image/png', 'image.png'); } - $formData['file'] = curl_file_create($notification->getImageProjectPath(), 'image/png', 'image.png'); $ch = curl_init($webHookUrl); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-type: multipart/form-data'));