File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
services/static-webserver/client/source/class/osparc/utils Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ qx.Class.define("osparc.utils.Avatar", {
4040
4141 __getUrl : function ( email , username , size = 100 ) {
4242 if ( email == null ) {
43- return `https://ui-avatars.com/api/ ${ username } / ${ size } ` ;
43+ email = "" ;
4444 }
4545 // MD5 (Message-Digest Algorithm) by WebToolkit
4646 const MD5 = function ( s ) {
@@ -261,9 +261,8 @@ qx.Class.define("osparc.utils.Avatar", {
261261 } ;
262262
263263 const emailHash = MD5 ( email ) ;
264- const defaultImageUrl = `https://ui-avatars.com/api/${ username } /${ size } /` ;
265- // return `https://www.gravatar.com/avatar/${emailHash}?d=${defaultImageUrl}&s=${size}&r=g`;
266- return `https://www.gravatar.com/avatar/${ emailHash } ?d=${ defaultImageUrl } &s=${ size } ` ;
264+ const defaultImageUrl = `https://ui-avatars.com/api/${ username } /${ size } ` ;
265+ return `https://www.gravatar.com/avatar/${ emailHash } ?d=${ defaultImageUrl } &s=${ size } &r=g` ;
267266 } ,
268267 }
269268} ) ;
You can’t perform that action at this time.
0 commit comments