From 2c32c4adee0d8541fb9e146ba5c477bab50edbd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Uls=C3=B8=20Kristensen?= Date: Mon, 13 Jun 2022 08:26:18 +0200 Subject: [PATCH] Added subject to web hook same as used for e-mail. --- src/psm/Util/Server/Updater/StatusNotifier.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/psm/Util/Server/Updater/StatusNotifier.php b/src/psm/Util/Server/Updater/StatusNotifier.php index 6951efea..4081b860 100644 --- a/src/psm/Util/Server/Updater/StatusNotifier.php +++ b/src/psm/Util/Server/Updater/StatusNotifier.php @@ -609,6 +609,7 @@ class StatusNotifier } $webhook = psm_build_webhook(); + $subject = key_exists('subject', $combi) ? $combi['subject'] : psm_parse_msg($this->status_new, 'email_subject', $this->server); $message = key_exists('message', $combi) ? $combi['message'] : @@ -638,7 +639,8 @@ class StatusNotifier '#server_label' => $this->server['label'], '#server_error' => $this->server['error'], '#server_last_offline_duration' => $this->status_new ? $this->server['last_offline_duration'] : '', - '#status' => $this->status_new ? 'online' : 'offline' + '#status' => $this->status_new ? 'online' : 'offline', + '#subject' => $subject ]); } }