From f892a1ceba906c1edc5c714e1b9f8b5cf4fc85ca Mon Sep 17 00:00:00 2001 From: Lowei Date: Tue, 19 May 2026 20:52:29 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20notifier=20l'auteur=20Discord=20quand=20?= =?UTF-8?q?un=20commentaire=20GitLab=20est=20ajout=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commandes/bug_report.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/commandes/bug_report.py b/commandes/bug_report.py index a286a4e..9c7ae2e 100644 --- a/commandes/bug_report.py +++ b/commandes/bug_report.py @@ -379,9 +379,17 @@ class BugReport(commands.Cog): is_system = note_attr.get("system", False) if not is_system: - note_body = note_attr.get("note", "") + # GitLab peut envoyer des champs différents selon version/config + note_body = ( + note_attr.get("note") + or note_attr.get("body") + or payload.get("note", "") + or payload.get("object_attributes", {}).get("note", "") + or "" + ) author_name = payload.get("user", {}).get("name", "Développeur") + try: components = [ disnake.ui.Container(