diff options
author | Benjamin MALYNOVYTCH <bmalynovytch@users.noreply.github.com> | 2018-01-02 20:12:19 +0100 |
---|---|---|
committer | fguillot <fred@kanboard.net> | 2018-01-02 11:12:19 -0800 |
commit | 0d20435f9e4c60a45d21819312a19401d628b72c (patch) | |
tree | e821b2f0c2d0a6ceef458ae53c741c5980ebc94a /app/Notification/WebhookNotification.php | |
parent | 9cec52f76b280a7009e8477eb4c01b3d1be25c05 (diff) |
Send event author in webhook notification
Diffstat (limited to 'app/Notification/WebhookNotification.php')
-rw-r--r-- | app/Notification/WebhookNotification.php | 1 |
1 files changed, 1 insertions, 0 deletions
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); |