Send event author in webhook notification
This commit is contained in:
committed by
fguillot
parent
9cec52f76b
commit
0d20435f9e
@@ -48,6 +48,7 @@ class WebhookNotification extends Base implements NotificationInterface
|
|||||||
$payload = array(
|
$payload = array(
|
||||||
'event_name' => $event_name,
|
'event_name' => $event_name,
|
||||||
'event_data' => $event_data,
|
'event_data' => $event_data,
|
||||||
|
'event_author' => ($this->userSession->isLogged() ? $this->userSession->getUsername() : NULL),
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->httpClient->postJson($url, $payload);
|
$this->httpClient->postJson($url, $payload);
|
||||||
|
|||||||
Reference in New Issue
Block a user