summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorBenjamin MALYNOVYTCH <bmalynovytch@users.noreply.github.com>2018-01-02 20:12:19 +0100
committerfguillot <fred@kanboard.net>2018-01-02 11:12:19 -0800
commit0d20435f9e4c60a45d21819312a19401d628b72c (patch)
treee821b2f0c2d0a6ceef458ae53c741c5980ebc94a /app
parent9cec52f76b280a7009e8477eb4c01b3d1be25c05 (diff)
Send event author in webhook notification
Diffstat (limited to 'app')
-rw-r--r--app/Notification/WebhookNotification.php1
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);