mirror of
https://gitlab.crans.org/elkmaennchen/gitscord-webhook
synced 2025-10-11 02:00:04 +02:00
bug #8 : avatar pictures are now shown every time
This commit is contained in:
parent
e56164a229
commit
d0fa8493e7
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue