From 0d20435f9e4c60a45d21819312a19401d628b72c Mon Sep 17 00:00:00 2001 From: Benjamin MALYNOVYTCH Date: Tue, 2 Jan 2018 20:12:19 +0100 Subject: Send event author in webhook notification --- app/Notification/WebhookNotification.php | 1 + 1 file changed, 1 insertion(+) (limited to 'app/Notification') diff --git a/app/Notification/WebhookNotification.php b/app/Notification/WebhookNotification.php index 16045535..1ef857a4 100644 --- a/app/Notification/WebhookNotification.php +++ b/app/Notification/WebhookNotification.php @@ -48,6 +48,7 @@ class WebhookNotification extends Base implements NotificationInterface $payload = array( 'event_name' => $event_name, 'event_data' => $event_data, + 'event_author' => ($this->userSession->isLogged() ? $this->userSession->getUsername() : NULL), ); $this->httpClient->postJson($url, $payload); -- cgit v1.2.3