Fix notifications
All checks were successful
Push image to registry / build-image (push) Successful in 5m51s

This commit is contained in:
2025-09-02 14:13:32 +02:00
parent c92dc08851
commit 1e52bb1ae9

View File

@@ -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'));