chore: update ntfy notifications

This commit is contained in:
2026-07-05 22:13:02 +02:00
parent 2e13e5d5d5
commit b13dd60788
2 changed files with 13 additions and 14 deletions
+2 -2
View File
@@ -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
]);