Skip to content

Commit db68f92

Browse files
committed
make use of subject
1 parent 970dd83 commit db68f92

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

resources/lib/UnityWebhook.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@ public function sendWebhook(?string $template = null, mixed $data = null): bool
4949
curl_setopt($ch, CURLOPT_POST, 1);
5050
curl_setopt($ch, CURLOPT_HTTPHEADER, ["Content-Type: application/json"]);
5151
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
52-
curl_setopt($ch, CURLOPT_POSTFIELDS, \jsonEncode(["text" => $message]));
52+
curl_setopt(
53+
$ch,
54+
CURLOPT_POSTFIELDS,
55+
\jsonEncode(["subject" => $this->Subject, "text" => $message]),
56+
);
5357
$result = curl_exec($ch);
5458
curl_close($ch);
5559
return $result;

0 commit comments

Comments
 (0)