From c1c1742ea71b621f5d337819b5f39da997679d94 Mon Sep 17 00:00:00 2001 From: elkmaennchen Date: Wed, 28 Oct 2020 12:29:08 +0100 Subject: [PATCH] add avatar of author --- gitscord_webhook.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitscord_webhook.php b/gitscord_webhook.php index 7cda230..9243ae5 100644 --- a/gitscord_webhook.php +++ b/gitscord_webhook.php @@ -119,7 +119,7 @@ function push_layout($messageJSON,$JSON,$lang) { 'description'=> "**".$JSON['commits'][$numCommit]['message']."**\n\n__".$txt_add_push[$lang]."__\n".$lst_added."\n__".$txt_mod_push[$lang]."__\n".$lst_modified."\n__".$txt_suppr_push[$lang]."__\n".$lst_deleted, 'url'=> $JSON['commits'][$numCommit]['url'], 'timestamp'=> $JSON['commits'][$numCommit]['timestamp'], - 'author'=> array('name'=> $JSON['commits'][$numCommit]['author']['name'])) + 'author'=> array('name'=> $JSON['commits'][$numCommit]['author']['name'], 'icon_url'=> $JSON['user_avatar'])) ); } return($messageJSON);