Fix notifications
All checks were successful
Push image to registry / build-image (push) Successful in 5m51s
All checks were successful
Push image to registry / build-image (push) Successful in 5m51s
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
$ch = curl_init($webHookUrl);
|
||||
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-type: multipart/form-data'));
|
||||
|
||||
Reference in New Issue
Block a user