chore: update ntfy notifications
This commit is contained in:
+2
-2
@@ -88,14 +88,14 @@ if (move_uploaded_file($file['tmp_name'], $destination)) {
|
||||
|
||||
// Send notification to Ntfy
|
||||
$ntfyUrl = 'https://ntfy.orfel.de/Schnappix-Frame-Upload';
|
||||
$message = "Ein neuer Rahmen wurde hochgeladen!\n\nName: $filename\nVon: $email\nBild-URL: $publicUrl";
|
||||
$message = "Name: $filename\nVon: $email\nBild-URL: $publicUrl";
|
||||
|
||||
$ch = curl_init($ntfyUrl);
|
||||
curl_setopt($ch, CURLOPT_POST, 1);
|
||||
curl_setopt($ch, CURLOPT_POSTFIELDS, $message);
|
||||
curl_setopt($ch, CURLOPT_HTTPHEADER, [
|
||||
'Title: Neuer Schnappix Hintergrund',
|
||||
'Tags: frame_with_picture,tada',
|
||||
'Tags: framed_picture,tada',
|
||||
'Click: ' . $publicUrl,
|
||||
'Attach: ' . $publicUrl
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user