File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 1064
1064
"description" : " Use garavatar icons in log viewers" ,
1065
1065
"default" : true
1066
1066
},
1067
+ "svn.gravatar.icon_url" : {
1068
+ "type" : " string" ,
1069
+ "description" : " Url for the gravitar icon using the <AUTHOR>, <AUTHOR_MD5> and <SIZE> placeholders" ,
1070
+ "examples" : [
1071
+ " https://www.gravatar.com/avatar/<AUTHOR_MD5>.jpg?s=<SIZE>&d=https%3A%2F%2Fui-avatars.com%2Fapi%2F/<AUTHOR>/128"
1072
+ ],
1073
+ "default" : " https://www.gravatar.com/avatar/<AUTHOR_MD5>.jpg?s=<SIZE>&d=robohash"
1074
+ },
1067
1075
"svn.ignoreMissingSvnWarning" : {
1068
1076
"type" : " boolean" ,
1069
1077
"description" : " Ignores the warning when SVN is missing" ,
Original file line number Diff line number Diff line change @@ -214,9 +214,13 @@ export function getCommitIcon(
214
214
return gravatar ;
215
215
}
216
216
217
- gravatar = Uri . parse (
218
- `https://www.gravatar.com/avatar/${ md5 ( author ) } .jpg?s=${ size } &d=robohash`
219
- ) ;
217
+ const gravitarUrl = configuration
218
+ . get ( "gravatar.icon_url" , "" )
219
+ . replace ( "<AUTHOR>" , author )
220
+ . replace ( "<AUTHOR_MD5>" , md5 ( author ) )
221
+ . replace ( "<SIZE>" , size . toString ( ) ) ;
222
+
223
+ gravatar = Uri . parse ( gravitarUrl ) ;
220
224
221
225
gravatarCache . set ( author , gravatar ) ;
222
226
You can’t perform that action at this time.
0 commit comments