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); }