From d0fa8493e7ee52669fcbd011003b61f5ece24ca9 Mon Sep 17 00:00:00 2001 From: elkmaennchen Date: Wed, 28 Oct 2020 14:31:25 +0100 Subject: [PATCH] bug #8 : avatar pictures are now shown every time --- gitscord_webhook.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gitscord_webhook.php b/gitscord_webhook.php index 216485d..a61d454 100644 --- a/gitscord_webhook.php +++ b/gitscord_webhook.php @@ -164,7 +164,7 @@ function issue_layout($messageJSON,$JSON,$lang,$mhl_color) { 'description'=> "**".$JSON['object_attributes']['title']."**\n".$JSON['object_attributes']['description'], 'url'=> $JSON['object_attributes']['url'], 'timestamp'=> $JSON['object_attributes']['last_edited_at'], - 'author'=> array('name'=> $JSON['user']['name'], 'icon_url'=> $JSON['user_avatar']), + 'author'=> array('name'=> $JSON['user']['name'], 'icon_url'=> $JSON['user']['avatar_url']), 'color'=> hexdec($mhl_color)),); return($messageJSON); } @@ -187,7 +187,7 @@ function note_layout($messageJSON,$JSON,$lang,$mhl_color) { 'description'=> "**".$JSON['object_attributes']['noteable_type']." *".$txt_object_name."***\n".$JSON['object_attributes']['note'], 'url'=> $JSON['object_attributes']['url'], 'timestamp'=> $JSON['object_attributes']['created_at'], - 'author'=> array('name'=> $JSON['user']['name'], 'icon_url'=> $JSON['user_avatar']), + 'author'=> array('name'=> $JSON['user']['name'], 'icon_url'=> $JSON['user']['avatar_url']), 'color'=> hexdec($mhl_color)),); return($messageJSON); } @@ -215,7 +215,7 @@ function MR_layout($messageJSON,$JSON,$lang,$hl,$mhl_color) { 'description'=> "**".$JSON['object_attributes']['title']."**\n".$txt_action_description, 'url'=> $JSON['object_attributes']['url'], 'timestamp'=> $JSON['object_attributes']['created_at'], - 'author'=> array('name'=> $JSON['user']['name'], 'icon_url'=> $JSON['user_avatar']), + 'author'=> array('name'=> $JSON['user']['name'], 'icon_url'=> $JSON['user']['avatar_url']), 'color'=> hexdec($mhl_color)),); return($messageJSON); }