events: only title for slack webhook
This commit is contained in:
parent
3e696d6ac8
commit
3ac148d01c
|
@ -254,7 +254,6 @@ class NotificationTransport(models.Model):
|
||||||
}
|
}
|
||||||
if notification.event:
|
if notification.event:
|
||||||
body["attachments"][0]["title"] = notification.event.action
|
body["attachments"][0]["title"] = notification.event.action
|
||||||
body["attachments"][0]["text"] = notification.event.action
|
|
||||||
try:
|
try:
|
||||||
response = post(self.webhook_url, json=body)
|
response = post(self.webhook_url, json=body)
|
||||||
response.raise_for_status()
|
response.raise_for_status()
|
||||||
|
|
Reference in New Issue