From fb30ed22421ae3c9319813b04f7bff4a985fc72f Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 2 Jan 2019 19:18:02 +0100 Subject: [PATCH] Fix displayed name in github hook --- webserver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webserver.py b/webserver.py index 77f59495..d9fc67fc 100644 --- a/webserver.py +++ b/webserver.py @@ -416,7 +416,7 @@ def hooks_github(): message = f"🐙 Nuovi aggiornamenti a Royalnet:\n" for commit in j.get("commits", []): if commit["distinct"]: - message += f'{commit["message"]} di {commit["author"]}\n' + message += f'{commit["message"]} di {commit["author"].get("username", "anonimo")}\n' telegram_bot.send_message(config["Telegram"]["main_group"], message, parse_mode="HTML", disable_web_page_preview=True, disable_notification=True) return "Done."