events: only title for slack webhook
This commit is contained in:
@ -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
Block a user