1
0
Fork 0
mirror of https://gitlab.crans.org/elkmaennchen/gitscord-webhook synced 2025-10-11 02:00:04 +02:00

add avatar of author

This commit is contained in:
elkmaennchen 2020-10-28 12:29:08 +01:00
parent 9b575e4472
commit c1c1742ea7

View file

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